nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 91 forks source link

help with running `docker-ce-cli` #18

Closed andboss closed 2 years ago

andboss commented 2 years ago

I have followed instructions and installed Debian with distrod, now i've tried to install docker-ce-cli

manually dockerdis running but service cannot be started, how can i debug or analyse more?

systemctl status docker.service
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2021-11-25 19:24:50 CET; 32s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 2930 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 2930 (code=exited, status=1/FAILURE)

Nov 25 19:24:50 md3fhv6c systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 25 19:24:50 md3fhv6c systemd[1]: Stopped Docker Application Container Engine.
Nov 25 19:24:50 md3fhv6c systemd[1]: docker.service: Start request repeated too quickly.
Nov 25 19:24:50 md3fhv6c systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 25 19:24:50 md3fhv6c systemd[1]: Failed to start Docker Application Container Engine.
Nov 25 19:25:16 md3fhv6c systemd[1]: docker.service: Start request repeated too quickly.
Nov 25 19:25:16 md3fhv6c systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 25 19:25:16 md3fhv6c systemd[1]: Failed to start Docker Application Container Engine.
andboss commented 2 years ago

ok i've followed the how-to without systems here and had this settings:

{
  "hosts": ["unix:///mnt/wsl/shared-docker/docker.sock"],
  "iptables": false
}

the hosts setting has conflicts with the service dockerd exec command

andboss commented 2 years ago

after removing "hosts": ["unix:///mnt/wsl/shared-docker/docker.sock"] it works now :)

andboss commented 2 years ago

gitlab-runner and docker services are running :)

Thank You for the project 👍