mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-13 06:37:12 +02:00
Merge remote-tracking branch 'upstream/master' into fix-parse-secret-containing-equal-character
# Conflicts: # __tests__/buildx.test.ts
This commit is contained in:
7
src/docker.ts
Normal file
7
src/docker.ts
Normal file
@ -0,0 +1,7 @@
|
||||
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;
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user