Skip to content

executor: clean finalized runc mount stubs - #7033

Closed
teamleaderleo wants to merge 1 commit into
moby:masterfrom
teamleaderleo:submit/buildkit-6686
Closed

executor: clean finalized runc mount stubs#7033
teamleaderleo wants to merge 1 commit into
moby:masterfrom
teamleaderleo:submit/buildkit-6686

Conversation

@teamleaderleo

Copy link
Copy Markdown

Fixes #6686

BuildKit currently decides which mount stubs to clean before rootless conversion finishes changing the mount list, which can leave rootful and rootless builds with different empty directories in the image.

This change registers cleanup after rootless conversion, when the mount list is final, and uses that list for cleanup.

The regression test covers the rootless case.

BuildKit records mount-stub cleanup before rootless conversion finishes changing the mount list, which can leave rootful and rootless builds with different empty directories.

This change registers cleanup after rootless conversion, when the mount list is final, and uses that list for cleanup.

Signed-off-by: Leo Li <cheerleaderleo@outlook.com>
@tonistiigi

Copy link
Copy Markdown
Member

replaced by #7039

@tonistiigi tonistiigi closed this Aug 13, 2026
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.

reproducible builds: rootless version produces different images

2 participants