docker: retry transient pull failures - #1289
Open
crazy-max wants to merge 1 commit into
Open
Conversation
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
crazy-max
marked this pull request as ready for review
August 31, 2026 12:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This retries
docker pullwhen the Docker daemon reports transient registry or network failures, such as Docker Hub auth token timeouts, connection resets, DNS timeouts, EOF responses, and registry5xxresponses. Permanent pull failures still fail immediately, including access denied errors and Docker Hub rate limit errors, because retrying those just wastes time and can make the problem worse.This helps reduce flakes in actions that pull setup images through the shared toolkit, especially
docker/setup-qemu-actionpullingtonistiigi/binfmt:latest.Related issues:
Error response from daemon: Head "https://registry-1.docker.io/v2/tonistiigi/binfmt/manifests/latest": EOF.Error response from daemon: Head "https://registry-1.docker.io/v2/tonistiigi/binfmt/manifests/latest": received unexpected HTTP status: 503 Service Unavailable.dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: read udp ... i/o timeout.Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)while booting BuildKit.received unexpected HTTP status: 500 Internal Server Errorwhile pullingmoby/buildkit:buildx-stable-1.download failed after attempts=6: received unexpected HTTP status: 500 Internal Server Error.