docker 启动失败 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

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" }

 

服务启动成功!

posted @ 2018-06-29 09:04  超凡2012  阅读(36491)  评论(0编辑  收藏  举报