Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

Is it not better to run a VM just for Docker, like we have to do on macOS?


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.

At least is secure(tm)

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)

At that point why not just simplify things and go back to Vagrant...?

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


Isn’t WSL2 vm based?

WSL2 is also a virtual machine.

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

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.


I’d rather run real Linux in a VM than a buggy appropriation of it in WSL



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github