5 ms·
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 in
by js2 3y 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://mac.getutm.app/
https://tart.run/ https://tart.run/
https://orbstack.dev/ 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.
- yashodhanmohan 3y agoI 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.
- fragmede 3y agoNot to mention, Parallels, VMWare, VirtualBox, QEMU
- cassianoleal 3y agoUTM (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.
- chucksta 3y agoLast I tried Vritualbox isn't reliably available on M1
- cassianoleal 3y agoAbout 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 https://docs.orbstack.dev/architecture#linux-machines