dockertest icon indicating copy to clipboard operation
dockertest copied to clipboard

Don't depend on DOCKER_MACHINE_NAME

Open titpetric opened this issue 7 years ago • 0 comments

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.

titpetric avatar Oct 03 '18 08:10 titpetric