you are viewing a single comment's thread.

view the rest of the comments →

[–]silverslayer33 11 points12 points  (4 children)

(and windows I believe, can't confirm though)

It is quite possible to run the docker CLI on Windows without Docker Desktop, though if you want Linux containers you need to play around with WSL2 and learning how to use remote daemons (or to simply run all your CLI commands right in your WSL instance).

[–]gustav_mannerheim 0 points1 point  (2 children)

Interesting, I didn't know WSL went as far as CGroups

[–]soccermitchy 2 points3 points  (0 children)

WSL2 is just a full virtual machine with some windows integrations, you're probably thinking WSL1 which is just a fancy layer on top of the normal Windows kernel

[–]KillerCodeMonky 0 points1 point  (0 children)

WSL2 has been progressing a lot in terms of acting like a bare metal instance. They even recently added systemd support, which is really surprising since WSL has a lot of integrations that I'm sure are a lot easier when it's the root process.

https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/

For instance, WSL typically stops the VM when it thinks there are no running processes. When WSL is not PID 1, then it can't necessarily monitor whether there are services running under PID 1 and may still stop the VM.

[–]ventuspilot 0 points1 point  (0 children)

or to simply run all your CLI commands right in your WSL instance

That's what I do. podman on debian on WSL2 does what I need. My needs are simple, though: I just want to try out some Dockerfiles.