-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Semantics of --transient-store
with volume
s are unclear and inconsistent
#25295
Comments
This is the expected behavior, volumes are part of the libpod db and transient store puts that db on tmpfs. Volume data however should persist and should not be deleted. The main driver of the transient store was also a driver for quadlet. So you just have a quadlet volume definition that recreates the volume in the db after boot which uses the same volume data because nobody wants that to be deleted on each boot. And in general one SHOULD NOT mix
Also this comman will create the volume, if the source volume does not exist podman creates it so if you would actually check volume ls afterwards it will show up so I think this is fine. That said I do agree that the semantics of transient store should be documented better. PRs welcome |
The volume does show up after running the command, but to my future self, it may feel like i'm accessing a volume out of thin air. The fact that the data persist but are not shown with one of the
Is there some other check or command i should be using to ensure I'm not mounting an existing volume and how can i clean volumes that i may have created in the past but are not longer needed? |
Yeah it will "leak" the underlying volume content when you do not recreate the volume with the same name. Transient mode was added for a very niche use case, I am not sure if you actually need that or not. I don't think that mode is useful outside of that but we definitely should document the behaviours around it better. |
My use case was really for prototyping and, ironically, keeping my system clean in the event some error failed to explicitly remove a volume; the documentation suggested the option is useful for:
Thanks for the tip on the |
Issue Description
The volume created with
podman --transient-store run --volume=named-volume:/path ...
appears to persist after reboot but is not shown in the output ofpodman volume list
orpodman --transient-store volume list
.Steps to reproduce the issue
where the last line should return something like:
DRIVER VOLUME NAME local maybe-transient
Reboot the machine
Now check the status of the volume created with
--transient-store
:where the last line should return:
i'm still here
Describe the results you received
The volume created with
--transient-store
is still accessible after reboot but is not shown in the output ofpodman --transient-store volume list
orpodman volume list
.Describe the results you expected
After reboot, either the volume should not be accessible anymore and removed from the machine, or it should be listed in
podman volume list
.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
[none]
Additional information
[none]
The text was updated successfully, but these errors were encountered: