Skip to content

Retry docker pull before starting container - #985

Merged
leighmcculloch merged 5 commits into
mainfrom
retry-docker-pull-in-action
Sep 16, 2026
Merged

leighmcculloch merged 5 commits into
mainfrom
retry-docker-pull-in-action

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Pull the quickstart image with retries and exponential backoff before docker run starts it.

Why

docker run pulls the image if needed but gives up after a single attempt, so transient network errors fail the workflow job. For example:

See these types of failures show up in a variety of places and I have been slowly adding retries each place it happens to reduce build flakiness.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Sep 16, 2026
@leighmcculloch
leighmcculloch requested a review from a team September 16, 2026 12:27
@leighmcculloch
leighmcculloch marked this pull request as ready for review September 16, 2026 12:27
Copilot AI balanced review requested due to automatic review settings September 16, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds resilient Docker image pulling to reduce workflow failures caused by transient registry errors.

Changes:

  • Resolves the image reference once for reuse.
  • Pulls missing images with exponential-backoff retries.
  • Starts the container using the resolved image.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 16, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@leighmcculloch
leighmcculloch merged commit 0b6519d into main Sep 16, 2026
104 checks passed
@leighmcculloch
leighmcculloch deleted the retry-docker-pull-in-action branch September 16, 2026 20:29
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants