Replies: 6 comments 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
-
I do not:
The only
|
Beta Was this translation helpful? Give feedback.
-
Do you have something under |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Mystery solved: #18349 (comment) |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions