1. 程式人生 > >docker啟動報錯:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke

docker啟動報錯:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke

環境:centos7

命令: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)


解決方案:

意思是說:此linux的核心中的SELinux不支援 overlay2 graph driver ,解決方法有兩個,要麼啟動一個新核心,要麼就在docker裡禁用selinux,--selinux-enabled=false

重新編輯docker配置檔案:

vi /etc/sysconfig/docker

\

改為:

\

然後systemctl start docker 就好啦