The above line represents the centos7.x command.
The following line represents the centos6.x command.
docker startup
systemctl start docker service docker start
Restart docker service
systemctl restart docker sudo service docker restart
Close docker
systemctl stop docker service docker stop
Check whether the startup is successful
docker ps -a
Related tutorial recommendations:docker tutorial
The above is the detailed content of How to start docker. For more information, please follow other related articles on the PHP Chinese website!