-
Notifications
You must be signed in to change notification settings - Fork 110
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
docker-squash cannot handle opaque directories #186
Comments
Thank you for this report, I'll take a look at this soon! |
Hi, have you had a chance to take a look at this? |
@twaugh No, not yet, sorry :( I'll try to squeeze some investigation today (but I have a packed day), if not, then tomorrow. |
Thanks for the reproducer, I was able to use it to see the bug. |
I have a fix for this coded locally. I want to look at it next week too to see how it can be improved because I don't like the current appraoch that much. |
Opaque directories are special case whiteout files. In case an opaque directory is found in a layer, all content inside of this rectory in this layer should be copied to the squashed layer, but any content in layers below that layer on the opaque directory path must be ignored. Fixes #186
Guys, I would appreciate if you would take a look at the code to find any obvious mistakes. It would be perfect if you could test this release with some image as well. See #187. |
Opaque directories are special case whiteout files. In case an opaque directory is found in a layer, all content inside of this rectory in this layer should be copied to the squashed layer, but any content in layers below that layer on the opaque directory path must be ignored. Fixes #186
Opaque directories are special case whiteout files. In case an opaque directory is found in a layer, all content inside of this rectory in this layer should be copied to the squashed layer, but any content in layers below that layer on the opaque directory path must be ignored. Fixes #186
Opaque directories are special case whiteout files. In case an opaque directory is found in a layer, all content inside of this rectory in this layer should be copied to the squashed layer, but any content in layers below that layer on the opaque directory path must be ignored. Fixes #186
Opaque directories are special case whiteout files. In case an opaque directory is found in a layer, all content inside of this rectory in this layer should be copied to the squashed layer, but any content in layers below that layer on the opaque directory path must be ignored. Fixes #186
Merged, 1.0.8 released and built for Fedora and RHEL. |
When the content of a directory is removed, a
.wh..wh.opq
file is created in that directory to announce thatits (including subdirs and their contents) should be ignored.Currently, docker-squash just skips those files. This leads to files introduced in lower layers and removed in a top layer to re-appear in the squashed image.
This can be reproduced with:
The text was updated successfully, but these errors were encountered: