Here's the situation. I'm using Docker with continuumio/anaconda3 image. I have the server (Ubuntu 16.04 LTS) configured to use the corporate proxy with CNTLM package. Internet works just fine in the host through the local proxy.
I have also modified cntlm.conf to listen to Docker's virtual network interface (docker0) at 172.17.0.1.
Docker is also properly configured and I can pull images with no problems. Once I deploy a container with an Anaconda image and I configure the container to use the host proxy by exporting the env variables http_proxy="http://172.17.0.1:3128"
and so on, I can use wget
and curl
to download.
Problem comes with conda
. I have follow the documentation and I have exported also HTTP_PROXY
and HTTPS_PROXY
variables. This does not work. Then I have created a .condarc
file in /root
directory with:
proxy_servers:
https: localhost:3128
http: localhost:3128
Also tried ssl_verify: False
.
Nothing seems to work. I always get the following error:
CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free/linux-64/repodata.json.bz2>
Elapsed: None
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/free/linux-64/repodata.json.bz2 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd88e1d1240>: Failed to establish a new connection: [Errno 111] Connection refused',)))",),)