A
A
Anton P.2020-08-05 21:10:31
Docker
Anton P., 2020-08-05 21:10:31

Docker issue. Wrong installation on windows+wcl2+debian? Why doesn't it start? How to search for a problem?

Issues installing decker on wls2+debian.
There was an error in the logs during installation

Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
* docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Wed 2020-08-05 18:25:05 +05; 7ms ago
        Docs: https://docs.docker.com
  Process: 3204 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
  Main PID: 3204 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
  installed docker-ce package post-installation script subprocess returned error exit status 1


sudo systemctl status docker outputs

[email protected]:~$ sudo systemctl status docker
* docker.service - Docker Application Container Engine   
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2020-08-05 18:25:13 +05; 3min 36s ago
        Docs: https://docs.docker.com 
    Main PID: 4610 (code=exited, status=1/FAILURE)

Aug 05 18:25:11 mrswylet-laptop systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 05 18:25:11 mrswylet-laptop systemd[1]: docker.service: Failed with result 'exit-code'. 
Aug 05 18:25:11 mrswylet-laptop systemd[1]: Failed to start Docker Application Container Engine.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: Stopped Docker Application Container Engine.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: docker.service: Start request repeated too quickly.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 05 18:25:13 mrswylet-laptop systemd[1]: Failed to start Docker Application Container Engine.


Installed according to the instructions https://docs.docker.com/engine/install/debian/
Where to dig? How to search for a problem?

Logs from journalctl -xe
[email protected]:~$ journalctl -xe
-- Subject: A start job for unit docker.socket has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit docker.socket has finished successfully.
--
-- The job identifier is 572.
Aug 05 23:32:20 mrswylet-laptop systemd[1]: docker.service: Start request repeated too quickly.
Aug 05 23:32:20 mrswylet-laptop systemd[1]: docker.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit docker.service has entered the 'failed' state with result 'exit-code'.
Aug 05 23:32:20 mrswylet-laptop systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: A start job for unit docker.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit docker.service has finished with a failure.
--
-- The job identifier is 525 and the job result is failed.
Aug 05 23:32:20 mrswylet-laptop systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
Aug 05 23:33:00 mrswylet-laptop WSL2: Performing memory compaction.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton P., 2020-08-27
@mrswylet

I was never able to get docker working under wls2 + debian.
But, under wls2+ubuntu+18.04 everything works fine.
Ubuntu installed according to this guide https://zource.dev/2020/05/setup-wsl2/

D
Dmitry, 2020-08-05
@q2digger

/etc/init.d/docker start
there systemd does not work as it should so far

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question