Shell/Bash: check if docker is running Example


Shell/Bash Example: This is the "check if docker is running" Example. compiled from many sources on the internet by

check if docker is running

systemctl status docker

how check status docker in ubuntu

sudo systemctl status docker
systemctl status docker.service
# To check the status of Docker whether running or not.

how to check if i have docker installed

$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?

how to test if docker is running from boot

#to check if docker is installed run
$ docker --version
#to check if docker is running run command
$ systemctl status docker

docker daemon


* Summary: This "check if docker is running" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!