educative.io

How to check the docker status on Mac?

What would be the similar command on Mac to check the docker status ? On linux this is supported -

$ service docker status
docker start/running, process 29393

On the mac, you can simply run docker ps -a to list all the running containers. If the docker daemon is running you’ll get the name of the containers along with their information but if it’s not, you’ll get an error asking if the docker daemon is running?