I am trying to create a bash utility script to check if a docker daemon is running in my server. Is there a better way of checking if the docker daemon is running in my serv
You could also just check for the existence of /var/run/docker.pid.
/var/run/docker.pid