Home >Operation and Maintenance >CentOS >How to prevent docker from starting at boot

How to prevent docker from starting at boot

angryTom
angryTomOriginal
2020-03-31 17:09:2111728browse

How to prevent docker from starting at boot

How to disable docker from starting up

The command to disable docker from starting up is: systemctl disable docker

More other commands are as follows:

显示服务状态:systemctl status docker.service
列出服务层级和依赖关系:systemctl list-dependencies docker.service
启动服务:systemctl start docker.service
关闭服务:systemctl stop docker.service
重启服务:systemctl restart docker.service
设置服务自启动:systemctl enable docker.service
禁止服务自启动:systemctl disable docker.service
查看服务是否自启动:systemctl is-enabled docker.service
列出系统所有服务的启动情况:systemctl list-units --type=service
列出所有自启动服务:systemctl list-unit-files|grep enabled

Old version commands: (chkconfig, service)

chkconfig --level 3 docker off
显示服务状态:service docker status
列出服务层级和依赖关系:systemctl list-dependencies docker.service
启动服务:service docker start
关闭服务:service docker stop
重启服务:service docker restart
设置服务自启动:chkconfig --level 3 docker on
禁止服务自启动:chkconfig --level 3 docker off
查看服务是否自启动:chkconfig --list docker
列出系统所有服务的启动情况:chkconfig --list

This article comes from the PHP Chinese website, CentOS usage tutorialColumn, please pay attention to this column for more related tutorials!

The above is the detailed content of How to prevent docker from starting at boot. 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