Skip to content

rm: handle broken builders during removal#3934

Merged
tonistiigi merged 2 commits into
docker:masterfrom
crazy-max:fix-rm-broken-builders
Jul 6, 2026
Merged

rm: handle broken builders during removal#3934
tonistiigi merged 2 commits into
docker:masterfrom
crazy-max:fix-rm-broken-builders

Conversation

@crazy-max

@crazy-max crazy-max commented Jul 6, 2026

Copy link
Copy Markdown
Member

fixes #2505
fixes #394

This makes buildx rm able to remove broken builders when node loading is blocked by an invalid BuildKit config or an unreachable endpoint.

The removal path now skips image config parsing when loading nodes for removal, including --all-inactive, so a bad stored buildkitd.toml no longer prevents cleanup. The node cleanup path now attempts every node and returns the collected errors after cleanup, so one unavailable endpoint doesn't prevent another removable node from being removed.

Removing a builder shouldn't require the builder to be healthy enough to build or inspect. The command still reports cleanup errors when a node cannot be reached, but it removes the builder metadata and cleans up any nodes that can be removed.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the fix-rm-broken-builders branch from bc9f7e6 to 22fcd6d Compare July 6, 2026 10:04
@crazy-max crazy-max requested a review from tonistiigi July 6, 2026 10:11
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the fix-rm-broken-builders branch from 22fcd6d to 8db0221 Compare July 6, 2026 10:15
@crazy-max crazy-max added this to the v0.36.0 milestone Jul 6, 2026
@crazy-max crazy-max marked this pull request as ready for review July 6, 2026 10:37
@tonistiigi tonistiigi merged commit 80b990a into docker:master Jul 6, 2026
160 checks passed
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.

Unable to delete an improperly configured build Got timeout when remove buildx instance which related a remote docker daemon

2 participants