dockerinstallationwindows-subsystem-for-linuxdocker-machinedocker-daemon

Docker on windows wsl not running daemon


I few days ago I installed docker in my WSL version 2 on windows. On Ubuntu

enter image description here

I used the following script provided by this page:

https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-desktop

curl -fsSL https://get.docker.com -o get-docker.sh

The problem is that after installing it, docker seems to be ok, but the docker daemon is not working

enter image description here

As you can see I start the service but if then I check the status it says is not running and also when trying to execute a docker compose or something like that also show the error that the docker daemon is not running

What should I check? I have used docker desktop always but I can not use it now so I have to just use docker in WSL

EDIT: My systemd is enable but I still got an error

enter image description here enter image description here

enter image description here

I also tried to start it manually with

sudo dockerd

but I got this error also enter image description here

Thanks in advance


Solution

  • Solved here https://github.com/microsoft/WSL/issues/6655

    it was an issue of the iptables, i had to use the legacy ones