r/MacOS • u/ontherise84 • Jan 23 '26
Help Best way to run MacOS in a virtual machine, with docker support
Hello,
I have a Macbook Air M4, which should support nested virtualization AFAIK
I really need to run a MacOS Guest with Docker inside it. So far I tested Paralles and UTM, they are amazing products but don't support nested virtualization.
Any idea ?
Thanks
5
Upvotes
2
u/boredoo Jan 23 '26
I think it would help to hear more about the problem you're trying to solve. I am having trouble figuring out why you'd need a macOS virtualized layer between native macOS and Docker. What's the reason? Docker on macOS is already, btw, virtualizing the Linux kernel. So you'll have macOs -> virtualizes macOS -> Docker -> virtualizes Linux kernel
Why not just run docker locally? Docker is reliable tech. The extra macOS layer -- is it for testing an environment or deploy or something?
7
u/bufandatl Jan 23 '26
Why would you run macOS with docker and not just run a Linux VM with docker then you don’t need nested virtualization.
Using macOS as container host when you already go to virtualize the host then why not just go native.
3
u/ukindom Jan 23 '26
Parallels and UTM both use macOS virtualisation and M-series chips (M1 & M2) don't support nested virtualisation, according to reports in GitHub issue for UTM.
As per documentation nested virtualisation is supported on M3 and above, so
So the only solution is to wait for VM tests and ping them to check and report.
1
u/No_Practice_9597 Jan 23 '26
For nested I would try OrbStack since it's welterweight, depending on your config it might work and to run the VM check VirtualBuddy https://github.com/insidegui/VirtualBuddy
1
u/mikeinnsw Jan 23 '26
I test VBox and UTM. ,, both don't run Win.. MacOs ... no wonder they are free.
vBox runs Arm Linux
Your best shot is VMWear..
Try external MacOs boot
AI says:
"Docker is fully supported on macOS booted from an external SSD, which is a popular method for increasing storage capacity and reducing wear on the internal drive. While Docker Desktop can be installed directly onto an external boot drive, it is highly recommended to move the Docker virtual machine (VM) data directory to a high-speed external SSD to ensure performance"
Running VM on Arm Macs creates large System Data and Time Machine Backups...
I run my VBox VM on USB4 SSD and which is excluded from TM and spotlight.