散手小子
|
“vi /etc/sysconfig/selinux 把selinux后面的改为disabled,重启一波机器,再重启docker就可以了” 确实这个问题,我修改了, reboot后就OK了 谢谢分享! |
刘香顺
|
谢谢大哥,搞了好久,还是你这个方法管用,一下子就好了,好人一生平安 |
文帅
|
https://www.cnblogs.com/yizhipanghu/p/9970510.html 现象:Centos7.3通过yum安装完docker后,启动docker失败 机器的系统版本:CentOS Linux release 7.3.1611 (Core) centos7,执行完安装命令: yum -y install docker 执行启动命令: systemctl start docker ,报如下错误:
[root@localhost lib]#
systemctl start dockerJob for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
报错信息: 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 (--selinux-enabled=false) 原因分析: 此linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,--selinux-enabled=false
重新编辑docker配置文件: [root@localhost lib]# vi /etc/sysconfig/docker# /etc/sysconfig/docker # Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false' if [ -z "${DOCKER_CERT_PATH}" ]; then DOCKER_CERT_PATH=/etc/docker "/etc/sysconfig/docker" 26L, 1100C written [root@localhost lib]# systemctl start docker[root@localhost lib]# 重新启动docker服务:systemctl start docker
|