Closed athos-ribeiro closed 5 years ago
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.
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.
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: