upvote
That has all sorts of issues like eating disk space and RAM, because neither can't be released to the host once allocated, but then become unused.
reply
At least is secure(tm)
reply
I just want to put this out there, smolmachines is a wonderful program to solve this, I use this mostly for stuff needing docker socket / docker in docker (example strix and agents). (I'm using podman on my host)
reply
At that point why not just simplify things and go back to Vagrant...?
reply
Damn, I did not know you need a VM for Docker on macOS. That's kind of ironic, isn't it XD

Every day I wake up and thank the universe for MS making WSL2

reply
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