Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded)
Docker couldn’t reach the registry in time — a network, DNS, proxy or firewall problem between your machine and the registry.
Client.Timeout exceeded while awaiting headersrequest canceled while waiting for connectionnet/http: TLS handshake timeout Meaning
The Docker daemon (not your shell) makes registry requests, so proxies set only in your terminal don’t apply. Corporate proxies, VPNs, IPv6 problems and DNS failures are the usual causes.
Common causes
- Corporate proxy not configured for the Docker daemon
- DNS can’t resolve registry hosts
- Firewall/VPN blocking outbound 443
- Flaky IPv6 route
⚡ Quick fix
- Configure the daemon proxy (Docker Desktop → Resources → Proxies, or systemd drop-in)
- Set DNS in daemon.json
- Retry off the VPN to confirm
Detailed fix by platform
Linux
- bash
sudo mkdir -p /etc/systemd/system/docker.service.d printf '[Service] Environment="HTTPS_PROXY=http://proxy:3128" ' | sudo tee /etc/systemd/system/docker.service.d/proxy.conf sudo systemctl daemon-reload && sudo systemctl restart docker
Docker
- bash
# /etc/docker/daemon.json { "dns": ["8.8.8.8", "1.1.1.1"] }
How to diagnose
- Reach — curl -v https://registry-1.docker.io/v2/ from the host
- Proxy — docker info | grep -i proxy
- DNS — nslookup registry-1.docker.io
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Docker
- docker-credential-desktop error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH
- pull access denied pull access denied for image, repository does not exist or may require 'docker login'
- did not complete successfully failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026