There are a lot of places to configure the proxy for Docker.
Two major scenarios:
- If you want to configure the proxy for the containers (like apt install inside container), you need to config in ~/.docker/config.json.
- 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