Skip to content

Conversation

@deitch
Copy link
Collaborator

@deitch deitch commented Jun 24, 2025

- What I did

If two lkt processes attempt to create a builder container at the same time, they both do an inspect, it fails, so they both try to create. The first one succeeds, the second one gets a name conflict and fails. Handle that situation.

- How I did it

Add a retry loop. After a create fails, try it again after one second, up to 3 times.

- How to verify it

I did it manually by stopping the code right before the "create" clause, started a second process, let it create, and then continued the first. Before this it failed, with this it works. And, of course, CI will catch regressions.

- Description for the changelog

Handle builder container process starting in parallel.

@deitch deitch merged commit 18a7619 into linuxkit:master Jun 25, 2025
22 checks passed
@deitch deitch deleted the parallel-builder-container branch June 25, 2025 07:09
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