Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executor: stubs cleaner should remove empty directory mounts #3307

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Nov 23, 2022

On Linux, an empty directory is usually 4096 bytes, not 0, so we need an additional explicit check here.

Signed-off-by: Justin Chadwell me@jedevc.com

On Linux, an empty directory is usually 4096 bytes, not 0, so we need an
additional explicit check here.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc
Copy link
Member Author

jedevc commented Nov 23, 2022

Fixes #3153 - the premise of the issue is a bug, the directory shouldn't persist into the final image (see #1739 (comment)).

@jedevc jedevc linked an issue Nov 23, 2022 that may be closed by this pull request
@jedevc jedevc added this to the v0.11.0 milestone Nov 23, 2022
Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully, this doesn't break any builds. We could maybe consider making this optional property of the mount. Then we could control the behavior with the Dockerfile version?

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.

user owned cache mount becomes root owned directory in final image
2 participants