Skip to content Skip to sidebar Skip to footer

How To Run Pip3+git From Behind Proxy With Docker?

How to set the git proxy as when run with pip3 ? Following instructions from https://github.com/nouiz/Theano-Docker When I run docker build -t theano_simple -f Dockerfile.0.8.X.ju

Solution 1:

fatal: unable to connect to github.com:github.com[0: 192.30.253.112]: errno=Connection timed outgithub.com[1: 192.30.253.113]: errno=Connection timed out

The error message seem like cause by RUN pip3 install, so add proxy for git doesn't work for this.

You could try add HTTPS_PROXY env before pip install.

ENV HTTPS_PROXY=https://myproxy:1111

Using pip behind a proxy

Solution 2:

Have you tried the following?

pip3 install yourmodulename --trusted-host pypi.python.org

Solution 3:

The problem is probably that you are behind a corporate proxy/firewall and outgoing connections are being blocked somewhere. A simple solution is just to change to the https version of the command:

Change:

pip3 install git+git://github.com/theano/theano.git@rel-${THEANO_VERSION}

To:

pip3 install git+https://github.com/theano/theano.git@rel-${THEANO_VERSION}

Alternatively:

You may want to try the steps here: https://help.github.com/articles/using-ssh-over-the-https-port/

This will redirect all git connections through the https protocol, which most companies allow :)

Good luck!

Post a Comment for "How To Run Pip3+git From Behind Proxy With Docker?"