Docker Will Not Start

Hi all. Been using endevour os for some time and I cannot get docker to work.

-- Boot 1bea486bffcf43dbab79da79d5b129fa --
Dec 31 07:15:16 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:15:17 Lok dockerd[5177]: time="2024-12-31T07:15:17.084142100Z" level=info msg="Starting up"
Dec 31 07:15:17 Lok dockerd[5177]: time="2024-12-31T07:15:17.112531441Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:15:18 Lok dockerd[5177]: time="2024-12-31T07:15:18.112795296Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:15:20 Lok dockerd[5177]: time="2024-12-31T07:15:20.113945113Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:15:24 Lok dockerd[5177]: time="2024-12-31T07:15:24.114496908Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:15:32 Lok dockerd[5177]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:15:32 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:15:32 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:15:32 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:15:32 Lok systemd[1]: docker.service: Consumed 101ms CPU time, 77.8M memory peak.
Dec 31 07:15:34 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 1.
Dec 31 07:15:34 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:15:34 Lok dockerd[8480]: time="2024-12-31T07:15:34.436518079Z" level=info msg="Starting up"
Dec 31 07:15:34 Lok dockerd[8480]: time="2024-12-31T07:15:34.451608113Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:15:35 Lok dockerd[8480]: time="2024-12-31T07:15:35.452127066Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:15:37 Lok dockerd[8480]: time="2024-12-31T07:15:37.453301900Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:15:41 Lok dockerd[8480]: time="2024-12-31T07:15:41.455456049Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:15:49 Lok dockerd[8480]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:15:49 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:15:49 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:15:49 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:15:51 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 2.
Dec 31 07:15:51 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:15:51 Lok dockerd[8800]: time="2024-12-31T07:15:51.675022092Z" level=info msg="Starting up"
Dec 31 07:15:51 Lok dockerd[8800]: time="2024-12-31T07:15:51.690703227Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:15:52 Lok dockerd[8800]: time="2024-12-31T07:15:52.691125898Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:15:54 Lok dockerd[8800]: time="2024-12-31T07:15:54.691413384Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:15:58 Lok dockerd[8800]: time="2024-12-31T07:15:58.694485013Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:16:06 Lok dockerd[8800]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:16:06 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:16:06 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:16:06 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:16:08 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Dec 31 07:16:08 Lok systemd[1]: docker.service: Start request repeated too quickly.
Dec 31 07:16:08 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:16:08 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:24:51 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:24:51 Lok dockerd[13540]: time="2024-12-31T07:24:51.374474832Z" level=info msg="Starting up"
Dec 31 07:24:51 Lok dockerd[13540]: time="2024-12-31T07:24:51.388393449Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:24:52 Lok dockerd[13540]: time="2024-12-31T07:24:52.388690622Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:24:54 Lok dockerd[13540]: time="2024-12-31T07:24:54.389891132Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:24:58 Lok dockerd[13540]: time="2024-12-31T07:24:58.393061689Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:25:06 Lok dockerd[13540]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:25:06 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:25:06 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:25:06 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:25:08 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 1.
Dec 31 07:25:08 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:25:08 Lok dockerd[13606]: time="2024-12-31T07:25:08.661757538Z" level=info msg="Starting up"
Dec 31 07:25:08 Lok dockerd[13606]: time="2024-12-31T07:25:08.675567228Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:25:09 Lok dockerd[13606]: time="2024-12-31T07:25:09.675892777Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:25:11 Lok dockerd[13606]: time="2024-12-31T07:25:11.677056367Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:25:15 Lok dockerd[13606]: time="2024-12-31T07:25:15.680217213Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:25:23 Lok dockerd[13606]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:25:23 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:25:23 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:25:23 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:25:25 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 2.
Dec 31 07:25:25 Lok systemd[1]: Starting Docker Application Container Engine...
Dec 31 07:25:25 Lok dockerd[13641]: time="2024-12-31T07:25:25.902262303Z" level=info msg="Starting up"
Dec 31 07:25:25 Lok dockerd[13641]: time="2024-12-31T07:25:25.921388661Z" level=warning msg="Unable to locate plugin: loki, retrying in 1s"
Dec 31 07:25:26 Lok dockerd[13641]: time="2024-12-31T07:25:26.921823915Z" level=warning msg="Unable to locate plugin: loki, retrying in 2s"
Dec 31 07:25:28 Lok dockerd[13641]: time="2024-12-31T07:25:28.922995980Z" level=warning msg="Unable to locate plugin: loki, retrying in 4s"
Dec 31 07:25:32 Lok dockerd[13641]: time="2024-12-31T07:25:32.926137434Z" level=warning msg="Unable to locate plugin: loki, retrying in 8s"
Dec 31 07:25:40 Lok dockerd[13641]: failed to start daemon: failed to set log opts: failed to set log opts: error looking up logging plugin loki: plugin "loki" not found
Dec 31 07:25:40 Lok systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 07:25:40 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:25:40 Lok systemd[1]: Failed to start Docker Application Container Engine.
Dec 31 07:25:43 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Dec 31 07:25:43 Lok systemd[1]: docker.service: Start request repeated too quickly.
Dec 31 07:25:43 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:25:43 Lok systemd[1]: Failed to start Docker Application Container Engine.

Could it be because the br interface is missing?

5GiB/31GiB | 0B/34GiB on ☁️  (eu-west-2) with /usr/bin/zsh
🕙 07:32:17 zsh ❯ firewall-cmd --get-active-zones
block (default)
  interfaces: enp5s0
docker
  interfaces: docker0
libvirt
  interfaces: virbr1 virbr4 virbr3 virbr0

Kernel Module seems to be installed

in /lib/modules/6.6.68-1-lts/kernel/net  5GiB/31GiB | 0B/34GiB on ☁️  (eu-west-2) with /usr/bin/zsh
🕙 07:35:24 zsh ❯ ls -l | grep "bridge"
drwxr-xr-x     - root root  30 Dec 07:43  ├── bridge
in /lib/modules/6.6.68-1-lts/kernel/net  5GiB/31GiB | 0B/34GiB on ☁️  (eu-west-2) with /usr/bin/zsh took 47s
🕙 07:41:25 zsh ❯ sudo systemctl status docker
[sudo] password for:
× docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2024-12-31 07:25:43 GMT; 20min ago
 Invocation: 3ac4a17eecab41c78551b1a4218eefc1
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 13641 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/F>
   Main PID: 13641 (code=exited, status=1/FAILURE)

Dec 31 07:25:43 Lok systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Dec 31 07:25:43 Lok systemd[1]: docker.service: Start request repeated too quickly.
Dec 31 07:25:43 Lok systemd[1]: docker.service: Failed with result 'exit-code'.
Dec 31 07:25:43 Lok systemd[1]: Failed to start Docker Application Container Engine.

Have you restarted the PC?

Hi, multiple times. This is an ongoing issue. Just for context have been trying to resolve this on and off for a few months and just been using docker in a VM but now I want to resolve it long-term.

cools just thought to check, at least thats ruled out

The lines from the log are cut. We do not see the full error messages.

Have you loaded the kvm module? E.g. on my Ryzen PC I load them with a file /etc/modules-load.d/kvm.conf with content

kvm_amd

EDIT:
Forget this statement. Has nothing to do with docker. I was in the wrong film

Fixed, apologies.

It’s 100% loaded I used KVM/QEMU everyday, unsure what it has to do with this?

Has nothing to do with it. My fault.

But what about the error messages. Can you paste the full messages?

I edited my original post, so should be visible now.

EDIT: It’s looking for loki…now I have to do some digging to see if there is an errant .yaml somewhere…

Looks like it is missing a plugin “loki”. Are you pulling that in with a docker file? e.g. ´

driver: "loki"

searching my machine for a rogue compose.yaml trying to pull this.

Can’t seem to find anything. Unless I have added some strange hook somewhere. I have checked systemd and nothing listed there that I can see.

Went scorched earth and still when I do a fresh install it’s looking for Loki…

# 1. Stop Docker services
sudo systemctl stop docker
sudo systemctl stop docker.socket
sudo systemctl stop containerd

# 2. Remove Docker packages using pacman
sudo pacman -Rns docker docker-compose containerd docker-buildx

# 3. Remove Docker files and directories
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
sudo rm -rf /etc/docker
sudo rm -rf ~/.docker

# 4. Remove Docker group
sudo groupdel docker

# 5. Remove Docker socket and other files
sudo rm -rf /var/run/docker.sock
sudo rm -rf /etc/apparmor.d/docker

# 6. Clean pacman cache
sudo pacman -Scc

Okay, so I found the issue. Such a strange one. I had a docker compose file in a SpaceVim backup. I deleted it and it resolved it.

Bloodstiller in ~/.config/work 🐍 v3.13.1  8GiB/31GiB | 0B/34GiB on ☁️  (eu-west-2) with /usr/bin/zsh 
🕙 09:26:39 zsh ❯ sudo find / -type f -name "*docker*" -exec grep -l "loki" {} \; 2>/dev/null
/home/bloodstiller/Dropbox/90-99_Repos/92-PersonalRepos/92.11-Docker/Loki_stack/docker-compose.yml
/home/bloodstiller/.cache/SpaceVim/old/backup/%home%bloodstiller%Desktop%Loki%docker-compose.yml~
/run/media/bloodstiller/4TB/RSnapShotBackups/monthly.1/LokHome/home/bloodstiller/.cache/SpaceVim/old/backup/%home%bloodstiller%Desktop%Loki%docker-compose.yml~
2 Likes

Mark as the solution and people in future can see/figure out stuff
Good to see ya figured it out

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