Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't depend on DOCKER_MACHINE_NAME #6

Open
titpetric opened this issue Oct 3, 2018 · 0 comments
Open

Don't depend on DOCKER_MACHINE_NAME #6

titpetric opened this issue Oct 3, 2018 · 0 comments

Comments

@titpetric
Copy link

titpetric commented Oct 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant