Hacker News new | ask | show | jobs
by js2 887 days ago
This reads a bit like "when all you have is a hammer" because it seems like what you want is a VM, not a container[^1]. Have you considered using VM software instead of Docker and using an Ubuntu VM directly? Some options:

https://mac.getutm.app/

https://tart.run/

https://orbstack.dev/ (using its "machines" functionality)

[^1]: Of course macOS docker is running a Linux VM under-the-hood, but that's an implementation detail.

3 comments

I have used VM softwares before and would have preferred using them in all honesty. This was more of an exploratory "can I do this? if yes, how far can I take it?" exercise. I just wanted to see how much effort would it take if I just wanted to "simulate" stuff (turns out 4 measly scripts). Plus I already use Docker in my work. This helps me avoid installing the VM software separately.
About OrbStack's machines:

> Strictly speaking, OrbStack machines are not independent VMs, but they're virtually indistinguishable for most intents and purposes — just with better integration. This is why we choose to call them "machines".

https://docs.orbstack.dev/architecture#linux-machines

Not to mention, Parallels, VMWare, VirtualBox, QEMU
UTM (GP's first link) is a GUI on top of QEMU.

Well, that plus the native macOS hypervisor framework as of a few months ago.

Last I tried Vritualbox isn't reliably available on M1