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:
parent
c58c6870a2
commit
0307a522bb
8 changed files with 274 additions and 3183 deletions
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;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue