1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-04-29 18:29:15 +02:00

Container based developer flow

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-10-23 21:58:59 +02:00
parent c58c6870a2
commit 0307a522bb
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
8 changed files with 274 additions and 3183 deletions

7
src/docker.ts Normal file
View 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;
});
}