-
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 deletes user directory?!? #19870
Comments
Thank you for reaching out, @NobodysNightmare. I think we need to backport commit 6aaf6a28435c. Did you configure Podman to use your $HOME directory for that? |
Does this happen to be the default? I did not specifically configure anything after installing podman. However, I executed the command from my home directory (i.e. |
I now read the commit you suggest to backport. I can confirm that this would have helped, because I definitely read the disclaimer before proceeding 👍 |
No,
How did you log into the machine/user? Can you share the output of |
Weird. So disclaimer: I am currently in the process of fixing my computer and I can't guarantee that this is the env that was present when I executed podman (and lots of "evidence" was deleted in the process):
|
Looking at the Podman info output, this is what strikes me as possibly relevant:
So apparently the graph root was set to my home directory. Seeing that it also indicates
I am semi-sure that this file was not existing at the point that I ran the I can however confirm that I neither created the corresponding file in the user directory nor had any other content in that file. |
Can you share the output (if present) of |
I think this can be the same root cause as: #20324 |
See my freshly posted message above (not sure whether we sent our message at the same time):
|
Backport of commit 6aaf6a2. system reset it says it will delete containers, images, networks, etc... However it will also delete the graphRoot and runRoot directories. Normally this is not an issue, however in same cases these directories were set to the users home directory or some other important system directory. As first step simply show the directories that are configured and thus will be deleted by reset. As future step we could implement some safeguard will will not delete some known important directories however I tried to keep it simple for now. [NO NEW TESTS NEEDED] see containers#18349, containers#18295, and containers#19870 Signed-off-by: Valentin Rothberg <[email protected]>
Backport of commit 6aaf6a2. system reset it says it will delete containers, images, networks, etc... However it will also delete the graphRoot and runRoot directories. Normally this is not an issue, however in same cases these directories were set to the users home directory or some other important system directory. As first step simply show the directories that are configured and thus will be deleted by reset. As future step we could implement some safeguard will will not delete some known important directories however I tried to keep it simple for now. [NO NEW TESTS NEEDED] see containers#18349, containers#18295, and containers#19870 Signed-off-by: Paul Holzinger <[email protected]> Signed-off-by: Valentin Rothberg <[email protected]>
#19874 has merged, so I am going to close the issue here. The remainder is backporting in downstream. But we will continue investigating the issue. |
Issue Description
podman system reset
just wiped my entire home directory.Steps to reproduce the issue
Describe the results you received
I will set up my machine from scratch I guess...
Describe the results you expected
Container stuff being deleted, not my computer.
podman info output
With root:
The text was updated successfully, but these errors were encountered: