docker启动报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke

Environment: centos7

Command: systemctl start docker

          systemctl status docker -l

报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux-enabled=false)


solution:

It means: SELinux in this linux kernel does not support overlay2 graph driver, there are two solutions, either start a new kernel, or disable selinux in docker, --selinux-enabled=false

Re-edit the docker configuration file:

vi /etc/sysconfig/docker

\

Change it to:

\

Then systemctl start docker is fine


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326228344&siteId=291194637