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

这个问题有两个解决方案

1.在vi /etc/sysconfig/docker中

docker报错 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kern_第1张图片

将其selinux禁用然后重启docker(service docker restart) 

但是笔者重启完成后输入docker pull等命令会遇见

Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25: x509: certificate has expired or is not yet valid这类问题

所有没有办法只能用第二种方法了

2.升级内核

yum install -y kernel

待升级完成后不做任何修改重启下虚拟机就行了

你可能感兴趣的:(docker,云计算,平台搭建,docker的学习笔记)