环境: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 就好啦
本文解决了一个常见的CentOS7环境下运行Docker时出现的问题:SELinux不支持overlay2 graph driver导致的错误。提供了两种解决方案:升级内核或在Docker中禁用SELinux。
1541

被折叠的 条评论
为什么被折叠?



