News for hackers. Stuff that matters.
Re:Simulate an Ubuntu-like VM inside macOS by js2 on Monday January 15, 2024 @08:51PM (#39008427)
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.

Re:Simulate an Ubuntu-like VM inside macOS by yashodhanmohan on Tuesday January 16, 2024 @03:28AM (#39010842)
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.
Re:Simulate an Ubuntu-like VM inside macOS by fragmede on Tuesday January 16, 2024 @03:54AM (#39011034)
Not to mention, Parallels, VMWare, VirtualBox, QEMU
Re:Simulate an Ubuntu-like VM inside macOS by cassianoleal on Tuesday January 16, 2024 @07:28AM (#39012561)
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.

Re:Simulate an Ubuntu-like VM inside macOS by chucksta on Tuesday January 16, 2024 @01:50PM (#39017134)
Last I tried Vritualbox isn't reliably available on M1
Re:Simulate an Ubuntu-like VM inside macOS by cassianoleal on Tuesday January 16, 2024 @07:30AM (#39012575)
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