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

版权声明:最终解释权归汐银所有,转贴请私聊 https://blog.csdn.net/qq_39562468/article/details/84990321

这个问题有两个解决方案

1.在vi /etc/sysconfig/docker中

将其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

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

猜你喜欢

转载自blog.csdn.net/qq_39562468/article/details/84990321