-
Notifications
You must be signed in to change notification settings - Fork 2k
added {http,https,no} proxy support to docker engines #1497
added {http,https,no} proxy support to docker engines #1497
Conversation
Hm, cool, thanks for the contribution. I'm wondering if it might be better to have just one flag, which will then apply to any environment variable, instead of three (and possibly more in the future) different flags? That way, you would : $ docker-machine create -d provider --engine-env HTTP_PROXY=http://foo.com --engine-env HTTPS_PROXY=bar.com proxybox What do you think? |
@nathanleclaire I like it! I'll update the PR. |
42f531a
to
09e087b
Compare
@nathanleclaire the PR now has code that implements the more general |
Very cool. Any ideas how to test this in the integration suite? |
09e087b
to
83a9c3c
Compare
@nathanleclaire I came up with a test that should work well -- spins up a machine and checks |
473cb42
to
fc8da9d
Compare
👍 for this -- i know a lot will benefit :) |
Looking pretty good --- we are about to merge in some structural changes to our docs, I will need you to rebase after that and then we will be ready to rock. I'll ping you when it's ready to rebase. |
OK I've merged that docs PR -- please rebase when it is convenient for you. Thanks! |
43434ed
to
071db28
Compare
@nathanleclaire I have rebased my doc changes into the new doc structure |
@@ -1,4 +1,4 @@ | |||
<!--[metadata]> | |||
## Specifying Docker Swarm options for the created machine<!--[metadata]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is supposed to be here?
cc @ehazlett for review of this PR |
071db28
to
ca694e2
Compare
@nathanleclaire fixed up the mistake in the |
Thanks @udryan10 and no problem. Hey @tianon, could you please take a quick look at these changes to the various OS configurations and note if anything strikes you as incorrect? For instance, I'm not sure if we should do |
``` | ||
$ docker-machine create -d virtualbox \ | ||
--engine-env HTTP_PROXY=http://example.com:8080 \ | ||
--engine-env HTTPS_PROXY=http://example.com:8080 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh... this is HTTPS_PROXY but the proto specified is http
;D
ca694e2
to
c3b991c
Compare
It all looks reasonably sane, but what happens when I need quotes in my environment variable values? ie: |
(ie, we probably ought to pass these through |
Signed-off-by: Ryan Grothouse <rgrothouse@gmail.com>
c3b991c
to
d553a2c
Compare
I've updated the code to run the env's through %q |
LGTM |
added {http,https,no} proxy support to docker engines
LGTM |
It seems that some aspect of proxy variable parsing can be picky about the proxy URL schema. I was getting "Proxy Authentication" errors with a proxy that doesn't require credentials. Adding a trailing slash to my proxy variables fixed the issue, as in:
This format is used in the Docker Engine example, but it's not used in the |
Adds HTTP_PROXY, HTTPS_PROXY and NO_PROXY support to docker engines per issue #1319