Created
August 24, 2021 08:10
-
-
Save thomasaarholt/0e981e66b91af7b640cfdcdf6412bdb7 to your computer and use it in GitHub Desktop.
Simple bash script to test if Docker is running
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if docker info > /dev/null 2>&1; then | |
: # pass | |
else | |
echo "Docker Daemon is not running. Please open it and retry." | |
exit -1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment