What to do if the docker service fails to start

王林
Release: 2020-05-21 10:51:44
Original
5105 people have browsed it

What to do if the docker service fails to start

Cause analysis:

SELinux in the Linux kernel does not support overlay2 graph driver.

Solution:

You can disable selinux in docker and set the parameter –selinux-enabled=false

The specific method is as follows:

1. Edit/ etc/sysconfig/docker

vi /etc/sysconfig/docker
Copy after login

2. Make the following modifications

OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
Copy after login

to

OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
Copy after login

and save.

3. Start the docker service again

systemctl start docker.service
Copy after login

Recommended tutorial: docker tutorial

The above is the detailed content of What to do if the docker service fails to start. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template