Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

                         Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

这个问题是由于此linux的内核中的SELinux不支持 overlay2 graph driver,大家修改的时候,一定要注意字母的拼写,我就尴尬了,给整错了,还自己查了半天的错。唉,蠢哭了。

5月 21 10:24:11 localhost.localdomain dockerd-current[4351]: 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)

此linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,–selinux-enabled=false

Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

 vi /etc/sysconfig/docker

#设置 --selinux-enabled=false

需要设定为false即可

Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

 

常见问题

这幅图,可以看到错误信息,是我将/etc/sysconfig/docker--selinux-enabled=false配置改错了,导致识别不了,我查了半天的错误,然来是自己给拼错了。

Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

参考文章

https://www.2cto.com/net/201803/730799.html