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
This works for me on Ubuntu
$ systemctl status docker