2 ms·
Does it have to be a Linux host? Can it be a Mac OS X host?
by MuffinFlavored 6y ago
Does it have to be a Linux host? Can it be a Mac OS X host?
- amaccuish 6y agoI'm pretty sure since Docker uses bhyve on mac, so that would be a nested VM...
- lostlogin 6y agoI 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.
- sigjuice 6y agoDocker has their own xhyve derivative called hyperkit. Nested VMs are not supported https://github.com/moby/hyperkit/issues/127 https://github.com/moby/hyperkit/issues/127
- chrisgacsal 6y agoIf I am not mistaken then xhyve and hyperkit are separate projects utilizing the same Hypervisor Framework from Apple under the hood.
- lloeki 6y agohyperkit 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.
- lloeki 6y agoYou can use Docker Machine and whatever backend you want, including xhyve, VirtualBox, and VMware Fusion, and enable nested virtualisation in the created machine.
- ggregoire 6y agoNot sure why you getting downvoted. Here is another solution posted 12 days ago that works on macOS: https://news.ycombinator.com/item?id=23284987 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.