How to set docker not to start at startup: 1. Use "systemctl list-unit-files | grep enable" to check whether the docker server and container are set to start at startup; 2. Use "systemctl disable docker.service" to shut down Just boot up and start.
The operating environment of this tutorial: linux7.3 system, docker version 19.03, Dell G3 computer.
View started services
systemctl list-units --type=service
1. Check whether it is set to start at boot
systemctl list-unit-files | grep enable
Set up startup
systemctl enable docker.service
2. Turn off startup
systemctl disable docker.service
Expand knowledge
docker container settings auto-start
Add --restart=always when starting
If the running project has already been started
If it has already been started For projects, use update to update:
docker update --restart=always isaler_v0.0.11
Recommended learning: "docker video tutorial"
The above is the detailed content of How to set docker not to start when booting. For more information, please follow other related articles on the PHP Chinese website!