I have this Dockerfile:
FROM node:argon ENV http_proxy http://user:pass@proxy.company.priv:3128 ENV https_proxy https://user:pass@proxy.company.priv:3128 RUN m
As described in the Docker Documentation adding the following to ~/.docker/config.json helped me:
~/.docker/config.json
{ "proxies": { "default": { "httpProxy": "http://127.0.0.1:3001", "httpsProxy": "http://127.0.0.1:3001", "noProxy": "*.test.example.com,.example2.com" } } }