Skip to content

Commit 46a63d4

Browse files
author
Robert Reed
committed
fix: add check to ensure docker daemon is running
1 parent 9741a5f commit 46a63d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dactyl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ function checkDocker() {
255255
error "Docker is not installed.\n\n\tPlease visit https://www.docker.com/products/docker-desktop for more information."
256256
exit 1
257257
fi
258+
259+
if ! docker image list &> /dev/null; then
260+
error "Docker is not running. Please start docker and try again."
261+
exit 1;
262+
fi
258263
}
259264

260265
# exit unless user responds with yes

0 commit comments

Comments
 (0)