Docker using behind the proxy.

1,397 views
Skip to first unread message

Vivek Dixit

unread,
Nov 27, 2014, 8:32:32 PM11/27/14
to docke...@googlegroups.com
Hi, 

We are trying to use docker at our work. 
Os version is ubuntu 12.04 Lts
Docker version 1.3

When I try to use Docker pull it gives me error proxy authentication required.
To fix this issue I searched in many forums and tried all the solutions found, 

I have updated apt.conf file with proxy information like http_proxy="http://user:password@proxyaddress:port".
I have updated resolv.conf file same information http_proxy="http://user:password@proxyaddress:port".
then I found docker file in /etc/default/docker so I updated that as well http_proxy="http://user:password@proxyaddress:port".

No luck:(

Are there any other settings I need to do in order to get it work. 

Regards, 
Vivek 


Baohua Yang

unread,
Nov 27, 2014, 8:56:27 PM11/27/14
to Vivek Dixit, docke...@googlegroups.com
Hi, Vivek
     Where did you set the proxy?
     Have you tried updating the apt.conf of the container?
     Can you try the following cmd in the container shell?

sudo http_proxy='http://user:pa...@proxy.example.com:8080/' apt-get install your-software

--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Best wishes!
Baohua

Madhav Puri

unread,
Nov 28, 2014, 12:23:01 AM11/28/14
to Baohua Yang, Vivek Dixit, docke...@googlegroups.com
Hi Vivek,

I think updating the docker conf file should have helped. Did you restart the docker service, after updating proxy info in /etc/default/docker?

on ubuntu 14.04 +:

service docker.io restart

--
Madhav

ryan wallner

unread,
Nov 28, 2014, 8:43:58 AM11/28/14
to docke...@googlegroups.com
Don't know if this may help but we have to load company CA certificates into our ubuntu and other boxes to use dockerhub.

After loading in Ubuntu we update-ca-certificates then set the proxy and it works fine.

Vivek Dixit

unread,
Nov 29, 2014, 9:54:45 AM11/29/14
to docke...@googlegroups.com
Thanks all for your response. Updating docker file worked, there was some issue with user access we were using to connect to proxy. 
Reply all
Reply to author
Forward
0 new messages