Hi guys, I have a question related to docker service. When i try to start docker with "sudo systemctl --now enable docker " it doesn’t work and i have this error message:
Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xe” for details.
systemctl status docker.service output
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-10-18 16:12:15 CEST; 41s ago
Process: 4167 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 4167 (code=exited, status=1/FAILURE)
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Oct 18 16:12:15 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Start request repeated too quickly.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Failed with result ‘exit-code’.
Oct 18 16:12:15 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
journalctl -xe
– Subject: Unit docker.service has failed
– Defined-By: systemd
– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
– Unit docker.service has failed.
– The result is failed.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Automatic restarting of the unit docker.service has been scheduled, as the result for
– the configured Restart= setting for the unit.
Oct 18 16:12:15 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
– Subject: Unit docker.service has finished shutting down
– Defined-By: systemd
– Unit docker.service has finished shutting down.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Start request repeated too quickly.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– The unit docker.service has entered the ‘failed’ state with result ‘exit-code’.
Oct 18 16:12:15 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
– Subject: Unit docker.service has failed
– Defined-By: systemd
– Unit docker.service has failed.
– The result is failed.
Oct 18 16:12:15 localhost.localdomain systemd[1]: docker.socket: Failed with result ‘service-start-limit-hit’.
– Subject: Unit failed
– Defined-By: systemd
– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
– The unit docker.socket has entered the ‘failed’ state with result ‘service-start-limit-hit’.
Oct 18 16:12:34 localhost.localdomain systemd[1]: fprintd.service: Succeeded.
– Subject: Unit succeeded
– Defined-By: systemd
– The unit fprintd.service has successfully entered the ‘dead’ state.
system version
Operating System: CentOS Linux 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-240.10.1.el8_3.x86_64
Architecture: x86-64
Can you guys tell me why?