Hello Docker Community,
I’m encountering an issue when trying to pull images from Docker Hub while behind a proxy with SSL interception in our on-premises data center. Interestingly, pulling images from quay.io works without any issues, but Docker Hub connections break and throw authentication and timeout errors. Here are the details of my setup and the troubleshooting steps I’ve taken so far:
Setup Details:
- Environment: On-premises data center
- Proxy: Enabled with SSL interception
- Docker Version: 20.10.12
- OS: [Your operating system]: RHEL 7.9
Proxy Configuration:
I’ve configured the proxy settings in both the Docker daemon and as environment variables:
export HTTP_PROXY=http://your.proxy.server:port
export HTTPS_PROXY=https://your.proxy.server:port
export NO_PROXY=localhost,127.0.0.1,your.registry.server
I’ve also added the proxy settings in /etc/systemd/system/docker.service.d/http-proxy.conf
and /etc/docker/daemon.json
:
[Service]
Environment="HTTP_PROXY=http://your.proxy.server:port"
Environment="HTTPS_PROXY=https://your.proxy.server:port"
Environment="NO_PROXY=localhost,127.0.0.1,your.registry.server"
{
"proxies": {
"default": {
"httpProxy": "http://your.proxy.server:port",
"httpsProxy": "https://your.proxy.server:port",
"noProxy": "localhost,127.0.0.1,your.registry.server"
}
}
}
SSL Certificate:
I’ve added the proxy’s SSL certificate to Docker’s trusted certificates:
sudo mkdir -p /etc/docker/certs.d/docker.io
sudo cp your-proxy-cert.crt /etc/docker/certs.d/docker.io/
sudo update-ca-certificates
sudo systemctl restart docker
Observations and Issues:
- Pulling images from
quay.io
works perfectly fine. - Pulling images from Docker Hub results in connection breaks with authentication and timeout errors.
Request for Help:
I’m looking for suggestions or insights from the community to resolve this issue