mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-21 22:30:07 +01:00
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;
|
|
});
|
|
}
|