When using multiple machines with docker-machine, the script currently retrieves the IP of the default one, even when the environment variables are set to use another machine, for instance:
➜ eps-dev docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Running tcp://192.168.99.100:2376 v1.12.5
eps * virtualbox Running tcp://192.168.99.101:2376 v1.12.5
This merge should fix it by specifying the machine name when asking the IP via the docker-machine ip command.
When using multiple machines with docker-machine, the script currently retrieves the IP of the default one, even when the environment variables are set to use another machine, for instance:
➜ eps-dev docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default - virtualbox Running tcp://192.168.99.100:2376 v1.12.5 eps * virtualbox Running tcp://192.168.99.101:2376 v1.12.5
This merge should fix it by specifying the machine name when asking the IP via the docker-machine ip command.