silarsis/docker-proxy

Proxy problems during the build stage

pjdurai opened this issue · 1 comments

Greetings

When I run the command 'sudo docker build -t docker-proxy .' , it fails because it cant reach index.docker.io through our corporate proxy.

This is the problem I am trying to solve using docker-proxy! (Accessing internet using docker containers.).

I may be missing something simple.
How do I get past this?

Thanks
pj

docker-proxy is not for routing Docker containers through an existing proxy, it provides a new proxy server that containers can use to speed up downloads, by storing the downloads and serving them up again on subsequent container builds, all on your local machine.

If you already have a corporate proxy then it will do this for you, so you likely have no need for docker-proxy.

Perhaps you could add an iptables rule to route all HTTP traffic via your corporate proxy to solve the problem instead?