DEV Community

Discussion on: Install Docker on Windows (WSL) without Docker Desktop

Collapse
 
medicmen profile image
MedicMen

I have done everything,

First It did not run, but when disabled VPN it started working but listen on something else.
Then I stopped dockerd and tried to restart but I failed, so after hour what is going on I simply run killall -9 docker and start dockerd again.
And it was working

BUT

When I started powershell and Ubunt in another cmd and run

docker -H unix:///mnt/wsl/shared-docker/docker.sock run --rm hello-world

I do have an error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:722: waiting for init preliminary setup caused: EOF: unknown

???

Collapse
 
miguelsantos500 profile image
Miguel

In my case this was because my linux distro was still on wsl version 1. you have to

  • upgrade your system-wide wsl version from 1 to 2
  • upgrade your distro version ( wsl --set-version 2 )
Collapse
 
ajburley profile image
ajburley

Yes! Worked for me too. I had upgraded my system-wide WSL to 2 and set the default version to 2, but what I hadn't done was set the version for my specific installed distribution using --set-version.