Skip to content

containerimage: fix possible race on parallel image create#6477

Merged
crazy-max merged 1 commit intomoby:masterfrom
tonistiigi:fix-image-update
Feb 10, 2026
Merged

containerimage: fix possible race on parallel image create#6477
crazy-max merged 1 commit intomoby:masterfrom
tonistiigi:fix-image-update

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

When image was (externally or in parallel build request) created in between Update and Create calls, Create can fail.

Handle this case by running Update again.

candidate fix for docker/buildx#3576

When image was (externally or in parallel build request) created
in between Update and Create calls, Create can fail.

Handle this case by running Update again.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@crazy-max crazy-max added this to the v0.28.0 milestone Feb 10, 2026
@crazy-max crazy-max merged commit 9836771 into moby:master Feb 10, 2026
189 checks passed
datapointchris added a commit to datapointchris/ichrisbirch that referenced this pull request Mar 16, 2026
… race

BuildKit has a race condition (moby/buildkit#6477) where parallel builds
of the same image tag collide on Create. Only the api service now has
the build config; app, chat, scheduler depend on api and reference the
pre-built image by tag. Also removes the ineffective docker image rm
workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants