Hacker News new | ask | show | jobs
by MuffinFlavored 2211 days ago
Does it have to be a Linux host? Can it be a Mac OS X host?
2 comments

Not sure why you getting downvoted.

Here is another solution posted 12 days ago that works on macOS: https://news.ycombinator.com/item?id=23284987

I didn't try it yet but I plan to use it to test Ansible playbooks targeting macOS.

I'm pretty sure since Docker uses bhyve on mac, so that would be a nested VM...
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.