控制端使用yum install docker安装完成docker后启动docker失败,出现以下信息:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
当时我就蒙了,我就按照提示systemctl status docker.service然后控制端出现以下信息:
我发现这好像是由于docker不支持图像内核驱动:SELinux不支持这个内核上的OrthALA2图形驱动程序
重新编辑docker配置文件:
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 fi
最后重新编译:systemctl restart docker 成功了!
原文地址:https://www.cnblogs.com/ya-qiang/p/9093145.html
时间: 2024-11-08 20:43:11