码迷,mamicode.com
首页 > 其他好文 > 详细

centos 7 启动docker失败。

时间:2018-10-22 10:24:55      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:png   lin   ted   false   bubuko   system   err   over   tar   

刚安装docker-io,在启动的时候报如下错误:
 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

技术分享图片

 

解决:

打开vim /etc/sysconfig/docker

修改成如下这样:

技术分享图片

也就是在--selinux-enabled改成--selinux-enabled=false

重启docker

systemctl restart docker

 

添加加速器:

打开:vim /etc/docker/daemon.json

添加:

{
"registry-mirrors": ["http://c6744fbb.m.daocloud.io"]
}

centos 7 启动docker失败。

标签:png   lin   ted   false   bubuko   system   err   over   tar   

原文地址:https://www.cnblogs.com/yjt1993/p/9828398.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!