Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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