Close

Docker behind an authenticating Proxy

$> sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTPS_PROXY=http://username:password@ip.ip.ip.ip:port/"

$> sudo systemctl daemon-reload
$> sudo systemctl restart docker

This is for Ubuntu and, you might had have noted, that this sets the HTTPS_PROXY to HTTP without S. Don’t ask why, it’s like Quantum Physics. Pointing to an TLS proxy result in the following error:

Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: tls: oversized record received with length 20527

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close