EN
Command to restart docker service on linux
7 points
In order to restart Docker service we need to execute one the below commands:
xxxxxxxxxx
1
service docker restart
2
3
# or
4
5
systemctl restart docker
Note:
system
is used by older Debian / Ubuntu familiar Linuxes,systemctl
by modern - sometimessystem
is installed in modern Linuxes for the legacy case only.
Example from my Linux command line:
xxxxxxxxxx
1
[root@localhost]# service docker restart
2
Redirecting to /bin/systemctl restart docker.service
And our Docker is up and running.