Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 03:39:56 11月02日 Update

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!

Tags: Services containers commands applications content servers steps questions processes help recommendations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia MariaDB Shulou Tech Info Xiaomi macOS