Open phemmer opened 1 year ago
@giuseppe PTAL
what is the reason of using fuse-overlayfs
for root containers?
Mostly because it was an attempt to get the functionality (described in linked article) without having to configure it for every single user one by one, before discovering that /etc/containers/storage.conf
is only used by root.
Are you saying this is the cause of the problem? If so, can you please explain, as the problem does not occur on containers launched by root, and in the example shown above, root is not used.
no, that is not the cause of the problem, fuse-overlays should work from root as well. The error is probably in the cleanup process, that doesn't trigger the unmount for the FUSE mount so the fuse-overlayfs process keeps running.
Another thing worth noticing, sudo -u gitlab-runner
does not create the correct environment for running rootless containers, could you try creating a session with ssh or machinectl?
Since you are always able to reproduce, would it be possible for you to run podman --log-level debug container cleanup $CTR
where $CTR is a container left running? Or there are no containers showing up as running but there is only the fuse-overlayfs mount? Do you have fusermount3
installed?
could you try creating a session with ssh or machinectl?
Tried with machinectl shell gitlab-runner@.host
. The issue still persists.
Or there are no containers showing up as running but there is only the fuse-overlayfs mount?
There are no containers running.
Do you have fusermount3 installed?
Yes
could you try creating a session with ssh or machinectl?
Tried with
machinectl shell gitlab-runner@.host
. The issue still persists.
does it exist with containers that you create from this session or older ones?
So I was basically doing the same thing as explained in this guide, setting in
/etc/containers/storage.conf
to:However this results in a
fuse-overlayfs
process spawning, and then never being terminated, even after the container using it has been removed.For example:
Running on debian bullseye with the packages built from https://gitlab.com/rhcontainerbot/rpms-openqa using debbuild
My complete
/etc/containers/storage.conf
:Edit: Oh, I also forgot there's a per-user storage.conf for
gitlab-runner
: