-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Running "podman system reset" deleted my entire $HOME directory #18287
Comments
Podman was configured somehow to use /root. A podman system reset will delete the graph root so this eplains why /root is deleted. Do you have a |
I do not:
The only
|
Do you have something under |
Yes, I do:
That works, thank you:
Looks like
Even though I have fixed this particular computer, in my opinion this is still a bug which should be fixed. I have not created anything under I would break down the issue as:
Just my two cents, I am not a |
We have no idea how this happened or why it would delete /root. If you created a reproducer we would certainly fix it. We have never heard of something like this happening. and have no idea how it happened if the root directory in storage.conf did not point at that directory. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue Description
podman info
was reporting that thevfs
storage driver was in use, even though my kernel is new enough (6.1
) and I have/usr/bin/fuse-overlayfs
present.From what I read that's because I already had
vfs
layers, so I ranpodman system reset
as my own (non-root) user, which worked mostly okay (I couldn't get the default to beoverlay
so I had to create~/.config/containers/storage.conf
, but that's for another ticket I guess).Then I decided to also run
podman system reset
asroot
because I remember running a few containers asroot
years ago. As a result,podman
proceeded to delete the entire/root/
folder.Steps to reproduce the issue
I have been able to reproduce the issue. For example, let's create
/root/.ssh/
and runpodman system reset
:Maybe
/root/
is intact, butpodman
mounted something on top of it? Unfortunately that's not the case:Describe the results you received
podman
deleted/root/
.Describe the results you expected
I expected podman to delete all containers/pods/images/networks/build cache/machines/volumes, but not my
/root/
folder.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Bare metal.
Additional information
AFAIK I am using the defaults as far as storage is concerned:
In my opinion it's highly surprising for
podman
to delete/root
using out-of-the-box configuration.The text was updated successfully, but these errors were encountered: