summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Reed <robert.mc.reed@gmail.com>2021-08-31 22:05:44 -0700
committerRobert Reed <robert.mc.reed@gmail.com>2021-08-31 22:05:44 -0700
commit46a63d47c23da94723f0750836f5db921cb26dc9 (patch)
tree1c6d6703d546c969b0f5c170e45aa8cc3a68b62a
parent9741a5f4731dac2f4792a4b451d9a96dd1c2a381 (diff)
fix: add check to ensure docker daemon is running
-rwxr-xr-xdactyl.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dactyl.sh b/dactyl.sh
index 7ccc387..43bb553 100755
--- a/dactyl.sh
+++ b/dactyl.sh
@@ -255,6 +255,11 @@ function checkDocker() {
error "Docker is not installed.\n\n\tPlease visit https://www.docker.com/products/docker-desktop for more information."
exit 1
fi
+
+ if ! docker image list &> /dev/null; then
+ error "Docker is not running. Please start docker and try again."
+ exit 1;
+ fi
}
# exit unless user responds with yes