Skip to content

Conversation

@deitch
Copy link
Collaborator

@deitch deitch commented Jun 25, 2025

… go via container ID

- What I did

We already handled the builder container creation in case of a race condition, but what about if it decides to stop and replace it? In that case, 3 different parallel processes all try to remove it, one succeeds, the others fail. Instead, it should do like the start condition, and just loop back.

In addition, to avoid accidentally trouncing one that a different process started, only stop and remove containers via ID.

- How I did it
Changed the code

- How to verify it
I ran it manually, and CI will ensure no regressions.

- Description for the changelog

More builder race condition handling

@deitch deitch merged commit d45d3e8 into linuxkit:master Jun 25, 2025
22 checks passed
@deitch deitch deleted the handle-race-condition-builder branch June 25, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant