Docker Proxy Configuration

By | May 3, 2022

There are a lot of places to configure the proxy for Docker.

Two major scenarios:

  1. If you want to configure the proxy for the containers (like apt install inside container), you need to config in ~/.docker/config.json.
  2. If you want to use proxy for Docker itself, like docker pull , configure the systemd: https://medium.com/@bennyh/docker-and-proxy-88148a3f35f7 Or edit the /etc/default/docker