upvote
WSL2 is also a virtual machine.
reply
WSL2 is also a VM. docker relies on the linux kernel apis, so it must be ran inside a linux VM on macos or windows
reply
Windows does have a native sandboxing API that Docker is capable of using IIRC, but nobody uses it.

The macOS situation is even worse in that the kernel lacks the requisite capabilities.

reply
I’d rather run real Linux in a VM than a buggy appropriation of it in WSL
reply
Isn’t WSL2 vm based?
reply