How to check if docker daemon is running? - Stack Overflow
stackoverflow.com › questions › 43978837May 15, 2017 · Show activity on this post. I made a little Script (Mac Osx) to ensure Docker is running by checking the exit code of docker stats. #!/bin/bash #Open Docker, only if is not running if (! docker stats --no-stream ); then # On Mac OS this would be the terminal command to launch Docker open /Applications/Docker.app #Wait until Docker daemon is running and has completed initialisation while (! docker stats --no-stream ); do # Docker takes a few seconds to initialize echo "Waiting for Docker to ...
How to check if docker daemon is running? | Newbedev
newbedev.com › how-to-check-if-docker-daemon-isHow to check if docker daemon is running? I made a little Script (Mac Osx) to ensure Docker is running by checking the exit code of docker stats. #!/bin/bash #Open Docker, only if is not running if (! docker stats --no-stream ); then # On Mac OS this would be the terminal command to launch Docker open /Applications/Docker.app #Wait until Docker daemon is running and has completed initialisation while (! docker stats --no-stream ); do # Docker takes a few seconds to initialize echo "Waiting ...