Skip to content

Commit 8177e15

Browse files
committed
buildx(history): check docker daemon is running before exporting
Signed-off-by: CrazyMax <[email protected]>
1 parent a14ead6 commit 8177e15

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/buildx/history.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export class History {
5050
if (!(await Docker.isAvailable())) {
5151
throw new Error('Docker is required to export a build record');
5252
}
53+
if (!(await Docker.isDaemonRunning())) {
54+
throw new Error('Docker daemon is not running, skipping build record export');
55+
}
5356
if (!(await this.buildx.versionSatisfies('>=0.13.0'))) {
5457
throw new Error('Buildx >= 0.13.0 is required to export a build record');
5558
}

0 commit comments

Comments
 (0)