Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A shell script that uses curl to see if docker is up and running
rep=$(curl -s --unix-socket /var/run/docker.sock http://ping > /dev/null)
if [ "$status" == "7" ]; then
echo 'not connected'
exit 1
echo 'connected'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.