Docker Community Forums

Share and learn in the Docker community.

Beta9 VM ip address


(Seafoodbuffet) #1

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.

e.g.

$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?


(Chulki Lee) #2

You can just use 127.0.0.1 in dnsmasq address config. It just works for me.


(Seafoodbuffet) #3

Thank you! That was a “well duh” moment for me. I concur that this works just fine. Nice