You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when dir1 gets removed and then in another layer dir1 and dir1/dir2 get recreated, the file foo is not correctly hidden as it should be. This seems to be an extension of the problem reported in containers/podman#3021, which is marked as fixed, but it only seems to be fixed for the case when the file is in the deleted directory. When the file is in a subdirectory of the deleted directory, the issue is still present.
It can be reproduced using podman by building the following Dockerfile and checking for existence of the file foo using podman run as unpriviledged user.
FROM busybox
RUN mkdir -p /dir1/dir2
RUN touch /dir1/dir2/foo
RUN rm -r /dir1
RUN mkdir -p /dir1/dir2
There are actually two variants of the problem.
With the dockerfile above, the whole dir1 gets marked with a whiteout file.
When the above dockerfile is altered so that the last two RUN instructions are merged into one, dir1 gets marked as opaque (this only occurs when building with docker, not buildah).
fuse-overlayfs seems to handle both cases incorrectly, whereas kernel overlay works as expected (using podman as root or using docker)
The text was updated successfully, but these errors were encountered:
giuseppe
added a commit
to giuseppe/fuse-overlayfs
that referenced
this issue
Oct 31, 2019
Given a directory structure:
when
dir1
gets removed and then in another layerdir1
anddir1/dir2
get recreated, the filefoo
is not correctly hidden as it should be. This seems to be an extension of the problem reported in containers/podman#3021, which is marked as fixed, but it only seems to be fixed for the case when the file is in the deleted directory. When the file is in a subdirectory of the deleted directory, the issue is still present.It can be reproduced using podman by building the following Dockerfile and checking for existence of the file
foo
using podman run as unpriviledged user.There are actually two variants of the problem.
dir1
gets marked with a whiteout file.RUN
instructions are merged into one,dir1
gets marked as opaque (this only occurs when building with docker, not buildah).fuse-overlayfs seems to handle both cases incorrectly, whereas kernel overlay works as expected (using podman as root or using docker)
The text was updated successfully, but these errors were encountered: