docker.service失败了。有关详细信息,请参阅“journalctl -xe”

时间:2018-05-18 07:08:36

标签: docker

 docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Thu 2018-05-17 15:47:26 CEST; 17h ago
     Docs: https://docs.docker.com
 Main PID: 11843 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/docker.service

May 18 08:48:38 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 08:49:09 temp systemd[1]: Stopped Docker Application Container Engine.
May 18 08:49:09 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 08:49:09 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 08:49:15 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 08:49:15 temmp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 09:00:03 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 09:00:03 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 09:03:51 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 09:03:51 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.

尝试卸载docker并重新安装它,但它引发了同样的错误,运行的docker守护程序可以有人帮助我。

2 个答案:

答案 0 :(得分:2)

docker要求的服务没有运行,因此,systemd不会启动docker。

尝试启动journalctl -f(不使用-u)查看所有单元日志,然后启动docker并仔细阅读日志,您可能会看到其他一些单元尝试启动和失败。

答案 1 :(得分:0)

您可以通过运行找到docker无法启动的原因

/usr/bin/dockerd -H unix://

在我来说,这是Docker 18.09的Centos7的全新安装

ERRO[2018-11-14T22:14:55.441548150+02:00] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.  storage-driver=overlay2
ERRO[2018-11-14T22:14:55.444930007+02:00] AUFS was not found in /proc/filesystems       storage-driver=aufs
ERRO[2018-11-14T22:14:55.447984399+02:00] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.  storage-driver=overlay

要解决此问题,我必须升级到更新的内核,并删除当前的docker存储空间

rm -rf /var/lib/docker

然后docker开始工作