Docker won’t start

I encountered the same question as the previous thread Docker won't start, but the solution (reboot) didn’t work :sob:.

> systemctl start docker.service
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.

Output of systemctl status docker.service:

× docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2024-11-18 14:17:49 CST; 12min ago
 Invocation: 8ce73cff6126482989ee8ef787fe63ac
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 3684 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 3684 (code=exited, status=1/FAILURE)

Nov 18 14:17:49 dell systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 18 14:17:49 dell systemd[1]: docker.service: Start request repeated too quickly.
Nov 18 14:17:49 dell systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 18 14:17:49 dell systemd[1]: Failed to start Docker Application Container Engine.

Output of journalctl -xeu docker.service:

░░ 
░░ The job identifier is 3059 and the job result is failed.
Nov 18 14:17:47 dell systemd[1]: docker.service: Scheduled restart job, restart counter is at 2.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ Automatic restarting of the unit docker.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Nov 18 14:17:47 dell systemd[1]: Starting Docker Application Container Engine...
░░ Subject: A start job for unit docker.service has begun execution
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit docker.service has begun execution.
░░ 
░░ The job identifier is 3171.
Nov 18 14:17:47 dell dockerd[3684]: unable to configure the Docker daemon with file /etc/docker/daemon.json: unexpected end of JSON input
Nov 18 14:17:47 dell systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ An ExecStart= process belonging to unit docker.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 18 14:17:47 dell systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Nov 18 14:17:47 dell systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit docker.service has finished with a failure.
░░ 
░░ The job identifier is 3171 and the job result is failed.
Nov 18 14:17:49 dell systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ Automatic restarting of the unit docker.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Nov 18 14:17:49 dell systemd[1]: docker.service: Start request repeated too quickly.
Nov 18 14:17:49 dell systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Nov 18 14:17:49 dell systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit docker.service has finished with a failure.
░░ 
░░ The job identifier is 3283 and the job result is failed.

I found the reason:

unable to configure the Docker daemon with file /etc/docker/daemon.json: unexpected end of JSON input

I miswrote /etc/docker/daemon.json for configuring mirrors, but there was syntax error (“}” missing).

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.