Just did the following experiment:
- Booted using xhyve an ubuntu 16.04 instance (see http://www.pagetable.com/?p=831)
- installed docker inside the VM
- started an nginx docker using --net=host inside the xhyve VM
It’s accessible from the host using it’s IP address AND I can access the host OS X from the container inside the VM.
So, it’s 100% doable.