mirror of
https://gitea.com/docker/setup-buildx-action.git
synced 2024-11-22 09:29:34 +01:00
8 lines
252 B
TypeScript
8 lines
252 B
TypeScript
|
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;
|
||
|
});
|
||
|
}
|