-
Notifications
You must be signed in to change notification settings - Fork 2k
machine 0.3 does not work if docker daemon needs http_proxy #1319
Comments
This has been brought up a few other times, but from different angles... I think all we need is some kind of A bunch of other requests like these have been closed due to plans to move to cloudinit, but those don't seem to be materializing as quickly as previously thought ;) |
If we could, we should detect the proxy and then pass it through, if it's a local machine. |
@sthulb +1, though that's definitely only relevant for the local drivers |
@hairyhenderson good point re: cloudinit. I think we could add a |
I'm in favor of the general idea (we've had enough requests for setting the proxy for daemon in particular that I think we should support it), I am not sure if we should conflate provisioning-time proxy with daemon run-time proxy or not though. Having a proxy for the daemon would imply
Hm, maybe an option/flag to do so, but I'm hesitant on automatic behaviors such as this. The user should be in the mindset of thinking of created machines as independent entities with their own behaviors. Conflating this has already caused us some pain before, e.g. with volumes. |
@nathanleclaire I can imagine multiple scenarios when the proxy used for |
@nathanleclaire I would propose the ability to simply pass through an environment variable during machine How about something like |
@stephanbuys - that's definitely part of it, but when a proxy is required usually it's needed for installation as well, so it's not just an engine-specific environment variable - it needs to be set in other places too. I definitely think there's a place for a general option like |
@ehazlett have you gotten a chance to do any work on this? If not, I just about have a PR ready that I can submit. In my fork I added the following flags as I thought it made the most sense:
I agree with @nathanleclaire that automatically pulling from environment variables is an automatic behavior that may create some undesirable results. ie.. I may be running my localhost with a proxy but I want to create an engine that does not use proxies - controlling this with flags gives me full control over this. |
closing as #1497 is merged. |
Hi,
I saw that docker-machine now delete the initial /etc/default/docker file (ubuntu with openstack driver) and put his DOCKER_OPTS in a new one.
What if there is some "export http_proxy" in this file (from a previous installation) ? The daemon started by machine hasn't got internet and is not able to pull images.
I searched some issues about that and found nothing.
A solution is to do docker-machine ssh after and put new lines in this file and restart the daemon, but it could be nice to be able to give to docker-machine (with a file or CLI options) to set those variables ?.
Any help/advices ? Thanks.
The text was updated successfully, but these errors were encountered: