3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2025-01-31 15:11:17 +01:00
docker-build-push/src/docker.ts

8 lines
252 B
TypeScript
Raw Normal View History

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;
});
}