dockertest
dockertest copied to clipboard
Don't depend on DOCKER_MACHINE_NAME
Hello,
looking at docker-machine env, there's also DOCKER_HOST available;
set -x DOCKER_HOST tcp://192.168.99.102:2376;
It should be trivial to use this instead, removing the dependency on docker-machine. Alternatively, it might be (somehow) useful to set the hostname by hand.
Edit: At least partially it can be done with a -H option for docker run and ignoring the hostname part from the hostname:port address passed to the health check. Not optimal, but it is a work-around.