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
Release: 2020-07-28 13:15:55
Original
10619 people have browsed it

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
Copy after login

2. Guardian Process restart

sudo systemctl daemon-reload
Copy after login

3. Restart docker service

 systemctl restart  docker
Copy after login

4. Restart docker service

sudo service docker restart
Copy after login

5. Close docker

service docker stop
Copy after login

6. Close docker

systemctl stop docker
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template