You are not logged in.

#1 2021-07-02 22:49:34

djenis
Member
Registered: 2021-04-19
Posts: 82

[SOLVED] Can't start docker.service

Hello,

I did a fresh install of docker but I can't start the docker.service.

I reinstalled the docker package:

pacman -S docker

I then enabled the service:

systemctl enable docker.service

When I try to start the service:

systemctl start docker.service

I get the error below:

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

This is the output from "journalctl -xeu docker.service":

The process' exit code is 'exited' and its exit status is 1.
Jul 03 00:31:46 ws systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Jul 03 00:31:46 ws systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 16696 and the job result is failed.
Jul 03 00:31:46 ws 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit docker.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jul 03 00:31:46 ws systemd[1]: Stopped Docker Application Container Engine.
░░ Subject: A stop job for unit docker.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit docker.service has finished.
░░
░░ The job identifier is 16781 and the job result is done.
Jul 03 00:31:46 ws systemd[1]: docker.service: Start request repeated too quickly.
Jul 03 00:31:46 ws systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Jul 03 00:31:46 ws systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 16781 and the job result is failed.

Output from "systemctl status docker.service":

× docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sat 2021-07-03 00:31:46 CEST; 2min 39s ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 126666 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
   Main PID: 126666 (code=exited, status=1/FAILURE)
        CPU: 180ms

Jul 03 00:31:46 ws systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jul 03 00:31:46 ws systemd[1]: Stopped Docker Application Container Engine.
Jul 03 00:31:46 ws systemd[1]: docker.service: Start request repeated too quickly.
Jul 03 00:31:46 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:31:46 ws systemd[1]: Failed to start Docker Application Container Engine.

Output from "journalctl -r -g docker":

-- Journal begins at Sat 2021-06-19 01:26:00 CEST, ends at Sat 2021-07-03 00:31:46 CEST. --
Jul 03 00:31:46 ws kernel: audit: type=1130 audit(1625265106.658:1571): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:46 ws systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
Jul 03 00:31:46 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:31:46 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:31:46 ws systemd[1]: docker.service: Start request repeated too quickly.
Jul 03 00:31:46 ws audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:46 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:46 ws systemd[1]: Stopped Docker Application Container Engine.
Jul 03 00:31:46 ws systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jul 03 00:31:46 ws kernel: audit: type=1130 audit(1625265106.315:1570): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:46 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jul 03 00:31:46 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:31:46 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:31:46 ws systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 00:31:46 ws dockerd[126666]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptable>
Jul 03 00:31:45 ws dockerd[126666]: time="2021-07-03T00:31:45.260705702+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:45 ws dockerd[126666]: time="2021-07-03T00:31:45.260066865+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:45 ws dockerd[126686]: time="2021-07-03T00:31:45.253299809+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
Jul 03 00:31:45 ws dockerd[126686]: time="2021-07-03T00:31:45.253275809+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
Jul 03 00:31:45 ws dockerd[126686]: time="2021-07-03T00:31:45.253246659+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
Jul 03 00:31:45 ws dockerd[126686]: time="2021-07-03T00:31:45.252429603+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/>
Jul 03 00:31:45 ws dockerd[126686]: time="2021-07-03T00:31:45.252225334+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/container>
Jul 03 00:31:45 ws dockerd[126666]: time="2021-07-03T00:31:45.217608967+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:45 ws systemd[1]: Starting Docker Application Container Engine...
Jul 03 00:31:45 ws kernel: audit: type=1131 audit(1625265105.158:1569): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:45 ws kernel: audit: type=1130 audit(1625265105.158:1568): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:45 ws systemd[1]: Stopped Docker Application Container Engine.
Jul 03 00:31:45 ws audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:45 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:45 ws systemd[1]: docker.service: Scheduled restart job, restart counter is at 2.
Jul 03 00:31:44 ws kernel: audit: type=1130 audit(1625265104.815:1567): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:44 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jul 03 00:31:44 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:31:44 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:31:44 ws systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 00:31:44 ws dockerd[126560]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptable>
Jul 03 00:31:43 ws dockerd[126560]: time="2021-07-03T00:31:43.758701681+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:43 ws dockerd[126560]: time="2021-07-03T00:31:43.758189224+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:43 ws dockerd[126580]: time="2021-07-03T00:31:43.752511094+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
Jul 03 00:31:43 ws dockerd[126580]: time="2021-07-03T00:31:43.752485144+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
Jul 03 00:31:43 ws dockerd[126580]: time="2021-07-03T00:31:43.752452874+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
Jul 03 00:31:43 ws dockerd[126580]: time="2021-07-03T00:31:43.751569328+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/>
Jul 03 00:31:43 ws dockerd[126580]: time="2021-07-03T00:31:43.751342230+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/container>
Jul 03 00:31:43 ws dockerd[126560]: time="2021-07-03T00:31:43.715700818+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:43 ws systemd[1]: Starting Docker Application Container Engine...
Jul 03 00:31:43 ws kernel: audit: type=1131 audit(1625265103.658:1566): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:43 ws kernel: audit: type=1130 audit(1625265103.658:1565): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:43 ws systemd[1]: Stopped Docker Application Container Engine.
Jul 03 00:31:43 ws audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:43 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:31:43 ws systemd[1]: docker.service: Scheduled restart job, restart counter is at 1.
Jul 03 00:31:43 ws kernel: audit: type=1130 audit(1625265103.382:1564): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:31:43 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jul 03 00:31:43 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:31:43 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:31:43 ws systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 00:31:43 ws dockerd[126441]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptable>
Jul 03 00:31:42 ws dockerd[126441]: time="2021-07-03T00:31:42.330096770+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:42 ws dockerd[126441]: time="2021-07-03T00:31:42.329477924+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:42 ws dockerd[126461]: time="2021-07-03T00:31:42.322787517+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
Jul 03 00:31:42 ws dockerd[126461]: time="2021-07-03T00:31:42.322739667+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
Jul 03 00:31:42 ws dockerd[126461]: time="2021-07-03T00:31:42.322669338+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
Jul 03 00:31:42 ws dockerd[126461]: time="2021-07-03T00:31:42.319082446+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/>
Jul 03 00:31:42 ws dockerd[126461]: time="2021-07-03T00:31:42.318793147+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/container>
Jul 03 00:31:42 ws dockerd[126441]: time="2021-07-03T00:31:42.276829328+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil>>
Jul 03 00:31:42 ws systemd[1]: Starting Docker Application Container Engine...
Jul 03 00:31:42 ws systemd[1]: Listening on Docker Socket for the API.
Jul 03 00:31:42 ws systemd[1]: Starting Docker Socket for the API.
Jul 03 00:31:42 ws polkitd[829]: Operator of unix-session:1 successfully authenticated as unix-user:denis to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for syst>
Jul 03 00:31:34 ws polkitd[829]: Operator of unix-session:1 successfully authenticated as unix-user:denis to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-unit-files for>
Jul 03 00:31:21 ws sudo[126291]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -S docker
Jul 03 00:30:41 ws sudo[126220]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker.sock
Jul 03 00:30:33 ws sudo[126201]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /var/lib/docker
Jul 03 00:30:24 ws sudo[126176]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker
Jul 03 00:30:16 ws sudo[126132]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -Rns docker
Jul 03 00:22:20 ws sudo[124944]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/dockerd
Jul 03 00:22:11 ws kernel: audit: type=1130 audit(1625264531.407:1280): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:22:11 ws systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
Jul 03 00:22:11 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:22:11 ws systemd[1]: docker.service: Failed with result 'exit-code'.
Jul 03 00:22:11 ws systemd[1]: docker.service: Start request repeated too quickly.
Jul 03 00:22:11 ws audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:22:11 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 03 00:22:11 ws systemd[1]: Stopped Docker Application Container Engine.
Jul 03 00:22:11 ws systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jul 03 00:22:11 ws kernel: audit: type=1130 audit(1625264531.073:1279): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Jul 03 00:22:11 ws audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=docker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jul 03 00:22:11 ws systemd[1]: Failed to start Docker Application Container Engine.
Jul 03 00:22:11 ws systemd[1]: docker.service: Failed with result 'exit-code'.

What is causing the issue?

Last edited by djenis (2021-07-03 09:40:23)

Offline

#2 2021-07-02 23:32:10

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] Can't start docker.service

I don't think you are giving us the full story of what you did. The following looks suspiciously like you tried to install [Community] Docker on top of some other Docker install that was done outside of pacman:

Jul 03 00:31:21 ws sudo[126291]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -S docker
Jul 03 00:30:41 ws sudo[126220]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker.sock
Jul 03 00:30:33 ws sudo[126201]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /var/lib/docker
Jul 03 00:30:24 ws sudo[126176]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker
Jul 03 00:30:16 ws sudo[126132]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -Rns docker
Jul 03 00:22:20 ws sudo[124944]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/dockerd

Offline

#3 2021-07-03 09:24:35

djenis
Member
Registered: 2021-04-19
Posts: 82

Re: [SOLVED] Can't start docker.service

This is me uninstalling and installing docker:

Jul 03 00:31:21 ws sudo[126291]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -S docker
Jul 03 00:30:41 ws sudo[126220]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker.sock
Jul 03 00:30:33 ws sudo[126201]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /var/lib/docker
Jul 03 00:30:24 ws sudo[126176]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/rm -rf /run/docker
Jul 03 00:30:16 ws sudo[126132]:    denis : TTY=pts/1 ; PWD=/home/denis/code/vastgoed/etl ; USER=root ; COMMAND=/usr/bin/pacman -Rns docker

It was Scott's suggestion in this thread: https://bbs.archlinux.org/viewtopic.php?id=194087

Offline

#4 2021-07-03 09:40:01

djenis
Member
Registered: 2021-04-19
Posts: 82

Re: [SOLVED] Can't start docker.service

Rebooting solved the issue. I'll mark this thread as [SOLVED] but I think it's fine to delete it because there's no useful information.

Thanks anyway!

Offline

#5 2022-04-01 08:09:22

listerreg
Member
Registered: 2022-04-01
Posts: 1

Re: [SOLVED] Can't start docker.service

This is very useful information. Probably it's the last thing I would try.

Offline

#6 2022-04-01 14:46:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,830

Re: [SOLVED] Can't start docker.service

listrreg, Welcome to the forums.  Please be careful about responding to old posts.

Using this opportunity to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB