It seems to me that I may need to set up docker to use http_proxy as I am behind a corporate proxy. I do have http_proxy and https_proxy environment variables set for root and this seems to work for apt-get but maybe not docker?

The docker documentation seems to indicate it should use those environment variables too?