Hacker News new | ask | show | jobs
by amaccuish 2210 days ago
I'm pretty sure since Docker uses bhyve on mac, so that would be a nested VM...
2 comments

Docker has their own xhyve derivative called hyperkit. Nested VMs are not supported https://github.com/moby/hyperkit/issues/127
You can use Docker Machine and whatever backend you want, including xhyve, VirtualBox, and VMware Fusion, and enable nested virtualisation in the created machine.
If I am not mistaken then xhyve and hyperkit are separate projects utilizing the same Hypervisor Framework from Apple under the hood.
hyperkit is a fork of xhyve, plus stuff like bridges between inotify and kqueue/fsevents, or transparent tcp port forwarding.

Hypervisor.framework is an API to execute hypervised code, to build virtualisation engines that can run unprivileged; you still have to write an actual virtual machine.

I misunderstood the angle this thread was taking - I thought the OP was going to ask if the Dockered MacOS could run Docker. I was just reading up on Rancher OS, but that’s a containerisation too far at this time in the AM.