Home >Operation and Maintenance >Docker >What command does docker use to start the service?

What command does docker use to start the service?

coldplay.xixi
coldplay.xixiOriginal
2020-07-28 13:15:5510607browse

The command for docker to start the service is: 1. Restart the daemon process, the code is [sudo systemctl daemon-reload]; 2. Restart the docker service, the code is [sudo systemctl daemon-reload].

What command does docker use to start the service?

The command for docker to start the service is:

1. Start

systemctl start docker

2. Guardian Process restart

sudo systemctl daemon-reload

3. Restart docker service

 systemctl restart  docker

4. Restart docker service

sudo service docker restart

5. Close docker

service docker stop

6. Close docker

systemctl stop docker

Recommended related tutorials: docker tutorial

The above is the detailed content of What command does docker use to start the service?. 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