I have this Linux box
$ uname -a
Linux TOCWgfi7IC 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
I have docker running on it (someone else installed it for me, but it seems the configuration files like /etc/default/docker don't exist)
I use a proxy http and https.
I've added the proxy settings to .bashrc file and .bash_profile and I was able to pull with github. I've also added HTTP_PROXY and the lowercase version (http_proxy) to /etc/default/docker, /etc/environment, /etc/apt/apt.conf, /etc/bash.bashrc and probably others too)
My proxies are in this format:
http_proxy=http://proxyprd.sss.com:8080
https_proxy=https://proxyprd.sss.com:8080
If I use wget I can't get anything. Requests time out.
sudo wget https://index.docker.io/v1
--2015-07-07 13:13:33-- https://index.docker.io/v1
Resolving index.docker.io... 54.174.141.60, 54.210.36.116, 54.152.41.71
Connecting to index.docker.io|54.174.141.60|:443...
failed: Connection timed out.
I've looked at the docker documentation and a few SO questions and none solved the issue for me:
Problem of using proxy with wget in Ubuntu
https://docs.docker.com/articles/systemd/#http-proxy
Cannot download Docker images behind a proxy
How do I connect to the internet with docker. Do I need a username and password in the proxy line?
EDIT 1
Got wget to work by adding /root/.wgetrc and putting the proxies in there.
This didn't work for docker with /root/.dockerrc :(