mirror of
https://github.com/docker/build-push-action
synced 2024-11-23 02:31:41 +00:00
0307a522bb
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
7 lines
252 B
TypeScript
7 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;
|
|
});
|
|
}
|