docker 启动失败 Job for docker.service failed because the control process exited with error code. See &q

Posted dalianmao890710

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker 启动失败 Job for docker.service failed because the control process exited with error code. See &q相关的知识,希望对你有一定的参考价值。

CentOS7安装docker,安装成功后,启动失败 提示:

技术分享图片

我们可以看到此处它提示是Failed to start Docker Application Container Engine.

于是在网上找各种类似错误,有说是需要把firewalld.service及selinux关闭。呃,这个的话是能够导致docker启动不了,可博主这块儿不是因为这个原因导致。

后来查到,docker的engine 基于Device Mapper提供的一种存储驱动,而它又依赖与 devicemapper。于是乎我将它给删除并重启服务,解决了docker无法正常启动的问题。

# rm -rf /var/lib/docker/

# 添加如下内容 #

vim /etc/docker/daemon.json

{ "graph": "/mnt/docker-data", "storage-driver": "overlay" }

技术分享图片

 

服务启动成功!

以上是关于docker 启动失败 Job for docker.service failed because the control process exited with error code. See &q的主要内容,如果未能解决你的问题,请参考以下文章

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error cod

docker 启动失败 Job for docker.service failed because the control process exited with error code. See &q

mysql启动失败:Job for mysqld.service failed because..

docker启动时报错Job for docker.service failed because the control process exited with error code. See &qu

Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. S

Docker启动报Job for docker.service failed because the control process exited with error code. See “syst