-
Notifications
You must be signed in to change notification settings - Fork 2k
Build fails behind a HTTP proxy #42
Comments
Are you getting this error consistently? I just tried on multiple machines and it works fine for me. |
Yeah looks like your HTTPS traffic is being dropped. |
ohh thanks .. will look into this and report back .. thanks for quick reply .. |
Hi, I tried "wget https://www.google.com" and it works out fine .. is there any other way to test this and make sure this is the issue before I go to my network admin ? |
Can you successfully
|
yes - just tried it |
In fact I tried Proxy request sent, awaiting response... 200 OK 100%[======================================>] 604 --.-K/s in 0s 2016-01-27 11:25:40 (94.3 MB/s) - ‘ssh?go-get=1.1’ saved [604/604] |
Weird, are you behind a proxy ? |
yes - but the proxy seems to be working fine atleast for the browser and wget on command line .. |
Kind of digging more into it - this seems to be fetching due to import in remote.go tools/src/nvidia-docker/remote.go: "golang.org/x/crypto/ssh" May be go does https fetch differently which is being blocked by my proxy? Will look and report but any help is appreciated. |
as in previous comment - relevant thread ? https://github.com/termux/termux-packages/issues/7
|
Maybe a problem with the Go user agent or |
Now I can download from a standalone go command using https but the build still fails at the same place. toships@server-05: |
Ok so it's not a problem with the user-agent. |
Ok fixed the issue - thanks for all your help. The -e option did not work for me. Came back with an error. FROM golang ENV http_proxy http://proxy.xxxxxx.com:80/ ENV NVIDIA_GPGKEY_SUM bd841d59a27a406e513db7d405550894188a4c1cd96bf8aa4f82f1b39e0b5c |
Oh right |
Hi, In order to avoid a proxy of the problem, it is necessary to fix all of dockerfile. ------ addproxy.sh -------- find ~/nvidia-docker/ -type f -name "Dockerfile*" | while read FILE $ sh addproxy.sh |
What about setting it up in
|
As it might be expected,The default docker, if we use the proxy behind must have the following it configuration. |
There are three different scopes for environment variables such as
Unfortunately, this isn't the only problem. Note: 172.17.42.1 reliably points to tho docker host. You can run a forwarding proxy there like cntlm or squid that has your credentials to your corporate proxy. This is undocumented and could potentially change in the future. That is the state of using docker behind a corporate proxy though. |
Closing since Docker now provides |
OS and docker version below:
Error on install below :
I checked "https://golang.org/x/crypto/ssh?go-get=1" and I get a "nothing to see here" message. Is this an issue or am I doing something wrong ? Please help.
The text was updated successfully, but these errors were encountered: