Configure Docker to use a proxy server | Docker Documentation
docs.docker.com › network › proxyConfigure the Docker client. On the Docker client, create or edit the file ~/.docker/config.json in the home directory of the user that starts containers. Add JSON similar to the following example. Substitute the type of proxy with httpsProxy or ftpProxy if necessary, and substitute the address and port of the proxy server. You can also configure multiple proxy servers simultaneously.
How to Configure a Proxy for #Docker on Windows (# ...
dille.name › blog › 2017/02/12Feb 12, 2017 · Unfortunately, the Docker service does not use the proxy server configured for Windows itself. Instead, it uses the environment variables commonly used on Linux. Many Linux based tools can be configured to use a proxy server by providing the following environment variables: HTTP_PROXY contains the proxy server for HTTP connections, e.g. http://1.2.3.4:3128. HTTPS_PROXY contains the proxy server for HTTPS connections