Home >Operation and Maintenance >Docker >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!