Home >Operation and Maintenance >Docker >How to start docker

How to start docker

王林
王林Original
2020-04-05 09:26:246322browse

How to start docker

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn