Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created August 24, 2021 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/0e981e66b91af7b640cfdcdf6412bdb7 to your computer and use it in GitHub Desktop.
Save thomasaarholt/0e981e66b91af7b640cfdcdf6412bdb7 to your computer and use it in GitHub Desktop.
Simple bash script to test if Docker is running
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