i found an article from other container product(not docker): https://www.flockport.com/using-flockbox-with-xhyve/, and i also haven’t even tested it if it does work indeed.
at the end, it mentions:
You can also use routing instead of portforwarding described above to access apps in containers. Routing will make the entire container subnet inside the VM available on the host.
If you would prefer to use routing instead of port forwarding this is how it works. Routing commands need to be run on the host.
If your VM IP is 192.168.64.3 and container subnet is 10.0.3.0/24 you can create a route with a command like below
sudo route -n add 10.0.3.0/24 192.168.64.3
Xyhve creates a bridge100 interface automatically for VM networking. Run a quick ifconfig to check the interface bridge100 is on, for instance en4, and then run the command below.
sudo ifconfig bridge100 -hostfilter en4
Now you should be able to ping any container inside the VM directly from the host
To access the app on your Hosts browser edit the /etc/hosts file on the host as described above with port forwarding but this time associate the container IP with the app URL.
Sorry that I have bare knowledge of the linux networking stuffs, but is it a workaround?
I don’t know how to get the IP Address of the vm(alpine with docker) running inside xhyve, any ideas?