-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
'podman system reset' shouldn't nuke unrelated things in $XDG_RUNTIME_DIR #4831
Comments
Strange. I thought we had fixed it, with a PR to containers/storage. |
In my case it also just removed everything from /run/user/1000 -- it complained that it couldn't remove the gvfs folder (that's how I noted it in the first place). Luckily I didn't have anything mounted and mapped to there :)
|
I think we need to just delete the c/storage directories, instead of the entire temporary directory - we still have a lot of old installs with /run/user/$UID as tmpdir, not a subdirectory |
Friendly ping. @rhatdan, did you have the chance to look into this? |
@QiWang19 PTAL |
@QiWang19 Reminder. |
I can't replicate this issue. For me Do we need to make these changes, to not remove /run/user/$UID/containers in system reset?
|
The problem is if our temporary directory is set to |
@mheon So what do we do? Is this an upgrade issue? New versions of podman all use the containers subdir. Did we record something in the database that causes us the issues? |
Yeah, upgrade issue - older installations use |
Yes it is in container/storage. But would a reboot fix the /run directive or only a full clean? |
Only a full clean - it's potentially in both the database and libpod.conf |
Ok lets check to see if the director == $XDG_RUNTIME_DIR, and not remove it in that case. If it is containers then it should be removed. |
/kind bug
Description
I tried resetting the rootless Podman storage using
podman system reset
a few times over the last week. On at least one occasion it tried to remove almost everything inside$XDG_RUNTIME_DIR
, and not just the container bits like$XDG_RUNTIME_DIR/overlay-*
or$XDG_RUNTIME_DIR/containers
. Among the things that disappeared were the session D-Bus, Pipewire and Wayland sockets. The attempt to remove$XDG_RUNTIME_DIR/doc
which is a FUSE mount point for Flatpak even led to:Additional information you deem important (e.g. issue happens only occasionally):
This didn't happen on every
podman system reset
run, though. Other times it seemed to restrict itself to the relevant container-specific directories.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: