News for hackers. Stuff that matters.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by vetinari on Wednesday October 07, 2020 @03:46PM (#24711932)
Docker works for you? How? Is it really docker for linux, or docker for windows to which you talk via socket?

All I've got trying to run docker was:

  System has not been booted with systemd as init system (PID 1). Can't operate.
And it is right, WSL2 uses it's own init system that basically launches bash.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by raesene9 on Wednesday October 07, 2020 @03:48PM (#24711956)
IME Docker for Windows works pretty well with WSL2. it just mounts the socket file into the WSL2 instance from the Docker instance, for most purposes it's pretty seemless.

There are some oddness with things like `--net=host` as the daemon is running in effectively another VM, but for standard Docker workflows it's been fine.

Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by markawesome on Wednesday October 07, 2020 @05:42PM (#24713095)
Startup time for Docker is about 15 seconds, compared to Linux which is immediate. You're also going to get additional slowness because Docker is running inside another VM.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by raesene9 on Thursday October 08, 2020 @03:34AM (#24716805)
If you're talking about time to launch a container, that's nothing like the times I'm seeing, is there perhaps a problem with your setup?

time docker run -d nginx 0c65064fc675427f0d49b837f368b6d17c3b42b2aa21bf80222baeb7ed20ed2b

real 0m1.556s user 0m0.018s sys 0m0.068s

Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by markawesome on Thursday October 08, 2020 @05:49PM (#24724289)
I was referring to the actual Docker service startup time for Windows. Once it is started, of course it is going to be much faster. I'm getting half that on Linux on an computer from 2012.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by sz4kerto on Wednesday October 07, 2020 @03:49PM (#24711962)
Docker for Linux. The proper one. Do not use systemctl, just:

sudo service docker start

.. voila

Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by tbronchain on Thursday October 08, 2020 @05:03AM (#24717282)
That's how I do it. Same goes for most services.

A difference between WSL and standard Linux is that is doesn't have a startup service manager, so you need to start services manually.

Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by thawkins on Thursday October 08, 2020 @06:14AM (#24717705)
Does it have an rc.local equiv that you can script those service starts into. Something like the docker entry-point would also work.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by vetinari on Thursday October 08, 2020 @05:42AM (#24717477)
Thanks, this works.
Re:WSL2 – Installation Tutorial for Graphical Windows Subsys... by 3np on Wednesday October 07, 2020 @03:52PM (#24712003)
Would podman be a better match for with WSL2 perhaps?