centos docker啟動失敗的解決辦法:1、打開docker配置文件;2、編輯內(nèi)容為“options=\’–selinux-enabled=false…”;3、執(zhí)行“systemctl restart docker”命令即可。
本文操作環(huán)境:centos 7系統(tǒng)、docker-ce版、dell g3電腦。
centos docker啟動失敗怎么辦?
centos7 啟動docker失敗的解決:
控制端使用yum install docker安裝完成docker后啟動docker失敗,出現(xiàn)以下信息:
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然后控制端出現(xiàn)以下信息:
我發(fā)現(xiàn)這好像是由于docker不支持圖像內(nèi)核驅(qū)動:selinux不支持這個內(nèi)核上的orthala2圖形驅(qū)動程序
重新編輯docker配置文件:
vi /etc/sysconfig/docker
# /etc/sysconfig/docker# modify these options if you want to change the way the docker daemon runsoptions=\’–selinux-enabled=false –log-driver=journald –signature-verification=false\’if [ -z \”${docker_cert_path}\” ]; then docker_cert_path=/etc/dockerfi
最后重新編譯:systemctl restart docker 成功了!
推薦學習:《docker視頻教程》