CentOS7 启动docker.service失败

新手上路,请多包涵

A dependency job for docker.service failed. See 'journalctl -xe' for details.

Job docker.service/start failed with result 'dependency Unit containerd.service entered failed state.containerd.service failed.

Dependency failed for Docker Application Container Engine

[root@cb ~]# systemctl start docker.service
A dependency job for docker.service failed. See 'journalctl -xe' for details.
[root@cb ~]# journalctl -xe
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has failed.
-- 
-- The result is dependency.
Nov 20 04:40:37 cb systemd[1]: Job docker.service/start failed with result 'dependency
Nov 20 04:40:37 cb systemd[1]: Unit containerd.service entered failed state.
Nov 20 04:40:37 cb systemd[1]: containerd.service failed.
Nov 20 04:40:37 cb systemd[1]: Stopped Docker Application Container Engine.
-- Subject: Unit docker.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has finished shutting down.
[root@cb ~]# systemctl status docker -l
* docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: https://docs.docker.com

Nov 20 04:37:11 cb systemd[1]: Job docker.service/start failed with result 'dependency'.
Nov 20 04:37:11 cb systemd[1]: Stopped Docker Application Container Engine.
Nov 20 04:37:45 cb systemd[1]: Starting Docker Application Container Engine...
Nov 20 04:37:45 cb systemd[1]: Dependency failed for Docker Application Container Engine.
Nov 20 04:37:45 cb systemd[1]: Job docker.service/start failed with result 'dependency'.
Nov 20 04:37:45 cb systemd[1]: Stopped Docker Application Container Engine.
Nov 20 04:40:37 cb systemd[1]: Starting Docker Application Container Engine...
Nov 20 04:40:37 cb systemd[1]: Dependency failed for Docker Application Container Engine.
Nov 20 04:40:37 cb systemd[1]: Job docker.service/start failed with result 'dependency'.
Nov 20 04:40:37 cb systemd[1]: Stopped Docker Application Container Engine.

阅读 9.2k
1 个回答

贴一下你的 /usr/lib/systemd/system/docker.service

[Unit]下有Afrer属性的值吗

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题