centos 7 启动docker失败。

刚安装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"]
}

记录学习和生活的酸甜苦辣.....哈哈哈
原文地址:https://www.cnblogs.com/yjt1993/p/9828398.html