mirror of
https://githubfast.com/docker/build-push-action.git
synced 2024-03-07 18:43:19 +00:00
0307a522bb
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
8 lines
252 B
TypeScript
8 lines
252 B
TypeScript
import * as exec from './exec';
|
|
|
|
export async function isDaemonRunning(): Promise<boolean> {
|
|
return await exec.exec(`docker`, ['version', '--format', '{{.Server.Os}}'], true).then(res => {
|
|
return !res.stdout.includes(' ') && res.success;
|
|
});
|
|
}
|