mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-20 17:46:45 +00:00
Add container based dev flow (#4)
* add container based dev flow Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> * Fix yarn test for container based dev flow Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> * Update contributing guidelines and test workflow Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
80f3f35da3
commit
41ae3d0e5f
7 changed files with 149 additions and 6 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