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

当在CentOS7环境下尝试启动Docker时,如果遇到Error starting daemon错误,提示SELinux不支持overlay2graphdriver,解决方案是更新内核或在Docker配置中禁用SELinux。通过编辑/etc/sysconfig/docker文件,将SELinux选项设置为false,然后重启Docker服务即可解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境: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 就好啦

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值