moby: Job docker.service/start failed with result 'dependency'.
I installed docker by binary.
And added service and socket to from the github repository to /etc/systemd/system
But the systemctl start docker is not working.
# systemctl start docker
A dependency job for docker.service failed. See 'journalctl -xe' for details.
journalctl -xu docker
-- Logs begin at Fri 2022-04-15 22:07:45 +07, end at Fri 2022-04-15 22:17:08 +07. --
Apr 15 22:07:51 lvs-gnsas-010 systemd[1]: Dependency failed for Docker Application Container Engine.
-- 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.
Apr 15 22:07:51 lvs-gnsas-010 systemd[1]: Job docker.service/start failed with result 'dependency'.
Apr 15 22:17:08 lvs-gnsas-010 systemd[1]: Dependency failed for Docker Application Container Engine.
-- 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.
Apr 15 22:17:08 lvs-gnsas-010 systemd[1]: Job docker.service/start failed with result 'dependency'.
systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
Apr 15 22:07:51 lvs-gnsas-010 systemd[1]: Dependency failed for Docker Application Container Engine.
Apr 15 22:07:51 lvs-gnsas-010 systemd[1]: Job docker.service/start failed with result 'dependency'.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (6 by maintainers)
What linux distro are you running on, and are the containerd and runc binaries (and services) installed as well?
Generally, the static binaries are recommended for debugging purposes, and to run standalone (no systemd unit etc); for other purposes I’d recommend installing the deb or rpm package.
To debug your issue, I’d recommend trying to get the daemon logs as well (which may contain more information); to see if something is wrong, you could first try to run it manually instead of as a systemd unit (
sudo dockerd --debug).The error seems to indicate a service that docker depends on is missing (but systemd error output can be rather informative, so it may be something else)