Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple bash script to test if Docker is running
if docker info > /dev/null 2>&1; then
: # pass
echo "Docker Daemon is not running. Please open it and retry."
exit -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment