Mac using docker-machine. When using docker-machine on your Mac, you need to use the IP of your machine. Considering you started the machine named default, you find the IP with. The problem with accessing containers by IP from windows machine. You just start any container (but container should be able to respond to pings). Then you need to get its IP. Suppose it is default bridge network, so: docker network inspect bridge (usually something like 172.17.0.2) Try to ping this IP from windows machine ping 172.17.0.2. In the past with docker-machine I could run the following command to determine the IP address: docker-machine ip default This proved a convenient way to setup env vars within shell scripts so I could do things like run psql from host and access the postgres container being used by my app. Disclaimer: I realize that docker.local is supposed to be a shortcut way to avoid using IP addresses with. Install Docker for Mac. Install docker using brew cask install docker or directly from the website here. Start XQuartz from command line using open -a XQuartz. In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked: Host Machine IP. Unfortunately, that is not correct since the IP 0.0.0.0 is the IP to access ES container from the host machine i.e. Another container will not be able to access this on the same IP address.
In the past with docker-machine I could run the following command to determine the IP address:
docker-machine ip default
This proved a convenient way to setup env vars within shell scripts so I could do things like run psql from host and access the postgres container being used by my app.
Disclaimer: I realize that docker.local is supposed to be a shortcut way to avoid using IP addresses with Docker for Mac, but for me it currently does not work when connected through VPN. I am sure that will be fixed eventually.
In the interim, and as part of my transition from docker-machine centric scripts, the question I would like guidance on is how do you get the IP address of xhyve docker instance?
Docker For Mac Machine Ip Address
Cheers,
-Lyndon