mirror of
https://gitee.com/actions-mirror/docker-build-push-action.git
synced 2025-02-24 06:30:57 +08:00
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;
|
||
|
});
|
||
|
}
|