Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Restart the docker service application self-start and stop command (recommended)

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Let's take a look at the self-start and stop command for restarting docker service. The details are as follows:

# restart docker service application, do not automatically open docker container docker update-- restart=no (docker container CONTAINER ID or docekr container NAMES) # restart docker service application, automatically open docker container docker update-restart=always (docker container CONTAINER ID or docekr container NAMES)

Ps: start the Docker command after the server is restarted

Startup steps:

1. Start the Docker daemon

Systemctl daemon-reload

2. Docker startup command:

Systemctl start docker

3. Check whether the docker service is started.

Ps-ef | grep docker

4. View the services started by docker:

Docker ps

Other:

Restart the docker service

Systemctl restart docker

Stop the docker service

Systemctl stop docker

Summary

The above is the self-start and stop command to restart the docker service application introduced by the editor. I hope it will be helpful to you. If you have any questions, you are welcome to leave a message and the editor will reply to you in time!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report