I just wanted to point out that now that docker.local is no longer used, you can’t use tricks that rely on pinging that hostname in order to find out the IP address of the xhyve VM.
See release notes
In my case, using localhost alone isn’t good enough because I’ve got containers that are made to respond to specific hostnames. So I needed to setup /etc/hosts or DNSMasq to resolve names to the IP of the VM.
In my case, the VM now runs on en3 on my mac host.
$ifconfig en3 | grep inet inet6 fe80::6a5b:35ff:fe9a:d838%en3 prefixlen 64 scopeid 0x12 inet 10.35.121.27 netmask 0xffffff00 broadcast 10.35.121.255
Then I setup /usr/local/etc/dnsmasq.conf to point to 10.35.121.27
Is there a more reliable way to do what I’m doing?