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
docker ps -a
You can see all docker containers whether it is alive or dead.