In a script, I need to check:
a) Is the docker engine running? b) Given a container name, is that docker container running?
[the initial wording of this
I ended up using
docker info
to check with a bash script if docker engine is running.