How to setup proxy for docker pull and docker build but not for docker run
In order to pull docker images and install packages from internet, I have to setup proxy in /etc/docker/daemon.json
. But it turns out that the proxy setting take effect not only for docker pull
and docker build
, but also docker run
, as it will export environment variable in the runtime.
using docker with multiple private repos over proxies
How to manage access to multiple private repos via multiple proxies. Each private repo is accessible via different proxy.