diff options
author | Robert Reed <robert.mc.reed@gmail.com> | 2021-08-31 22:05:44 -0700 |
---|---|---|
committer | Robert Reed <robert.mc.reed@gmail.com> | 2021-08-31 22:05:44 -0700 |
commit | 46a63d47c23da94723f0750836f5db921cb26dc9 (patch) | |
tree | 1c6d6703d546c969b0f5c170e45aa8cc3a68b62a | |
parent | 9741a5f4731dac2f4792a4b451d9a96dd1c2a381 (diff) |
fix: add check to ensure docker daemon is running
-rwxr-xr-x | dactyl.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |