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