Unset proxies in containers

So, my issue is that my container env is picking up the http proxy from my global config. I need the proxy to allow docker to talk to the outside world, but my containers need to speak to each other on the network they are on.

when i inspect my container(s) env i get :


my dockerfile looks like:

ENV proxy
ENV http_proxy $proxy
ENV https_proxy $proxy

So its getting the https proxies form the dockerfile, but not the http, which are being inherited from my global docker config.

as a side note, i dont actually want to use Ijust wanted to see if they were getting picked up at all

I am using OSX 10.11.6
docker version 1.12.1

1 Like