Home>Article>Operation and Maintenance> What to do if centos docker fails to start

What to do if centos docker fails to start

藏色散人
藏色散人 Original
2021-12-08 15:59:38 5379browse

Solution to centos docker startup failure: 1. Open the docker configuration file; 2. Edit the content as "OPTIONS='--selinux-enabled=false..."; 3. Execute "systemctl restart docker" Just order.

What to do if centos docker fails to start

The operating environment of this article: CentOS 7 system, Docker-CE version, Dell G3 computer.

What should I do if centos docker fails to start?

centos7 solution to the failure to start docker:

The control terminal uses yum install docker to install docker and then fails to start docker, and the following message appears:

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

I was confused at that time, I followed the prompt systemctl status docker.service and then the following information appeared on the control end:

Me I found that this seems to be due to docker not supporting the image kernel driver: SELinux does not support the OrthALA2 graphics driver on this kernel

Re-edit the docker configuration file:

vi /etc/sysconfig/docker

# /etc/sysconfig/docker # Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false' if [ -z "${DOCKER_CERT_PATH}" ]; then DOCKER_CERT_PATH=/etc/docker fi

Finally recompile: systemctl restart docker successful!

Recommended learning: "docker video tutorial"

The above is the detailed content of What to do if centos docker fails to start. 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