check if docker is running
sudo systemctl status docker
#(OR)
systemctl status docker.service
# To check the status of Docker whether running or not.
0
0
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0
Thank you!
0
0
3.83
6
#to check if docker is installed run
$ docker --version
#to check if docker is running run command
$ systemctl status docker
Thank you!
6
0
4
1
dockerd
Thank you!
1
0
4.33
9
systemctl status docker
Thank you!
9
0
3.88
8
#to check if docker is installed run
$ docker --version
#to check if docker is running run command
$ systemctl status docker
Thank you!
8
0
3.86
7
dockerd
Thank you!
7
0
4.5
2
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0
Thank you!
2
0
3.67
3
systemctl status docker
Thank you!
3
0
Are there any code examples left?
New code examples in category Shell/Bash