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

Support docker machine #6

Closed
wants to merge 2 commits into from
Closed

Support docker machine #6

wants to merge 2 commits into from

Conversation

richfitz
Copy link

These commits add basic support for docker machine. boot2docker has been deprecated in favour of docker-machine on OS/X and Windows.

I've been using this in another context for a little while and it seems to work fairly well. There is the additional complication that docker machine can support multiple docker servers, and there is a bit of extra logic (documented in b9217d6) that tries to do the right thing here.

There is an issue where copy/paste does not work as expected while system commands to docker-machine are run.

Change of behaviour copied from b9217d6's message:

Because the docker-machine commands can be fairly slow, I've shifted them
to be conditional during .onLoad, based on the harbor.autoconnect
option (which can be set to TRUE or a machine name).

Happy to revert to the old behaviour if you'd rather, though it triggers at installation which seems problematic.

The logic of the initialisation is fairly complex but is documented in
`?docker_machine_init`.  This works with the situation of >1 machine, but
falls back on the same behaviour as the previous `$(boot2docker shellinit)`
in the case of a single machine.

Because the docker-machine commands can be fairly slow, I've shifted them
to be conditional during .onLoad, based on the `harbor.autoconnect`
option (which can be set to `TRUE` or a machine name).
This is useful for containers that expose ports, so that the
correct IP can be given.
@wch
Copy link
Owner

wch commented Oct 30, 2015

I haven't been following changes to boot2docker and Docker Machine recently. Am I right that this will break harbor for people that still just have boot2docker? If that's the case, then at least there should be some sort of message about it.

@sckott
Copy link

sckott commented Oct 30, 2015

Given the hanging env problem (e.g., docker/machine#1500), should we require a newer RC version of docker-machine? v0.5.0-rc3 + fix it for me on OSX . Not clear whether folks on Windows/Linux have the same problem.

@richfitz richfitz closed this Feb 20, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants