CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)
CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)问题执行:systemctl start docker会出现的错误:Job for docker.service failed because the control process exited with e
CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)
问题
-
执行:
systemctl start docker
-
会出现的错误:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
-
ps如果不解决会出现
Cannot connect to the Docker daemonatunix:///var/run/docker.sock.Is the docker daemon running?
解决方法
-
vim /etc/sysconfig/docker-storage
将配置文件修改为:
DOCKER_STORAGE_OPTIONS="--selinux-enabled --log-driver=journald --signature-verification=false"
-
vim /etc/docker/daemon.json
写入指定参数:
{ "storage-driver": "devicemapper" }
-
然后重启docker服务:
systemctl restart docker
注意
这里第一步是修改,第二步是写入。
附
docker自启:systemctl enable docker
更多推荐
所有评论(0)