docker
timeout
ai_generated
true
error: context deadline exceeded
ID: docker/docker-context-deadline-exceeded
82%Fix Rate
85%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 27 | active | — | — | — |
Root Cause
Docker operation timed out. Common during image pulls from slow registries, large build contexts, or when the Docker daemon is overloaded.
genericWorkarounds
-
88% success Check network connectivity and DNS resolution to the registry
curl -v https://registry-1.docker.io/v2/ to test registry connectivity; check firewall rules and proxy settings
-
85% success Use a registry mirror or pull from a closer region
Configure registry mirrors in /etc/docker/daemon.json: {"registry-mirrors": ["https://mirror.gcr.io"]}
Dead Ends
Common approaches that don't work:
-
Repeatedly retrying the same pull without addressing network conditions
70% fail
If the registry is throttling or the network is congested, retries without backoff make it worse
-
Increasing Docker daemon timeout to very large values
65% fail
Masks underlying network or registry issues; operations that genuinely fail will hang for excessive periods
Error Chain
Frequently confused with: