Configure Docker to use a proxy server | Docker Docs
https://docs.docker.com/network/proxy/