Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[rootless & fuse-ovl] mount command makes most directories disappear rendering the container useless #1225
so far so good
where is the rest?
It's true, whole
Can this be an issue of fuse-overlayfs?
fuse-overlayfs is running inside of a new user+mount namespace, so what is mounted is not visible outside of the mount namespace. We could run fuse-overlayfs in the host mount namespace, after all it is just a FUSE file system but in this way we wouldn't be able to use the multiple IDs we have in the user namespace.
To improve usability we could disable mount when overlay is used in rootless mode, but technically it is possible to use, it is just a "nsenter -u -m" away:
$ buildah from registry.fedoraproject.org/fedora:29 $ mnt=$(buildah mount fedora-working-container /home/gscrivano/.local/share/containers/storage/overlay) $ ls $mnt $ nsenter -m -U -t $(pgrep fuse-overlayfs) ls $mnt bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var $ nsenter -m -U -t $(pgrep fuse-overlayfs) bash -c 'echo foo > $mnt/bar' $ nsenter -m -U -t $(pgrep fuse-overlayfs) ls $mnt bar bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var
Maybe should we just print a warning on how it must be used?
Yes please. This issue actually breaks buildah connection plugin in ansible: ansible first performs
Definitely worth documenting.
Well, for me it's back to vfs :<