Docker Proxy

Docker Config

~/.docker/config.json

{
 "proxies": {
   "default": {
     "httpProxy": "http://proxy.example.com:3128",
     "httpsProxy": "https://proxy.example.com:3129",
     "noProxy": "*.test.example.com,.example.org,127.0.0.0/8"
   }
 }
}

Don't use the ENV Dockerfile instruction to specify proxy settings for builds. Use build arguments instead.