版权声明:本文为博主原创文章,欢迎转载。 https://blog.csdn.net/u011095110/article/details/83545474
错误提示
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
Active: failed (Result: start-limit) since 二 2018-10-30 16:47:49 CST; 43s ago
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/docker.service.d
└─flannel.conf
Active: failed (Result: start-limit) since 二 2018-10-30 16:23:29 CST; 31s ago
Docs: https://docs.docker.com
Process: 32038 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)
Main PID: 32038 (code=exited, status=1/FAILURE)
10月 30 16:23:29 localhost13 systemd[1]: Unit docker.service entered failed state.
10月 30 16:23:29 localhost13 systemd[1]: docker.service failed.
10月 30 16:23:29 localhost13 systemd[1]: docker.service holdoff time over, scheduling restart.
10月 30 16:23:29 localhost13 systemd[1]: start request repeated too quickly for docker.service
10月 30 16:23:29 localhost13 systemd[1]: Failed to start Docker Application Container Engine.
10月 30 16:23:29 localhost13 systemd[1]: Unit docker.service entered failed state.
10月 30 16:23:29 localhost13 systemd[1]: docker.service failed.
10月 30 16:23:38 localhost13 systemd[1]: start request repeated too quickly for docker.service
10月 30 16:23:38 localhost13 systemd[1]: Failed to start Docker Application Container Engine.
10月 30 16:23:38 localhost13 systemd[1]: docker.service failed.
解决方法
在/etc/docker/daemon.json里面加入{“storage-driver”:“devicemapper”}
如果没有daemon.json文件,直接新建并加入{“storage-driver”:“devicemapper”}
重启成功