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

What to do if the docker service fails to start

王林
王林Original
2020-05-21 10:51:445106browse

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

2. Make the following modifications

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

to

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

and save.

3. Start the docker service again

systemctl start docker.service

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!

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
Previous article:How to clear docker logsNext article:How to clear docker logs