-
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
can't create an anonymous volume with nocopy option #25176
Comments
I find the As such it must parse you example as I think using |
This one I do like :), but I also understand why you don't. Today it simply doesn't make sense (especially when reading the docs) that none of the I agree As far as the name of an explicit anonymous volume.. If we thought this was the right approach we could just declare a name and then put the change in a major release with changelog note? Though, another solution: what if we didn't do I'm not tied to any of these solutions, just throwing out ideas and seeing what you all think. Thanks for the discussion! |
Sure but that makes this juts more unintuitive and makes the docs more difficult to understand. Why is there now a special value, etc...?
Adding a new special char as separate is also a breaking change. Sure the amount of percentage of people having With |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Why wouldn't the new docs just explain the problem and the solution. i.e. can't use any
Oh I see. You're saying it would be a breaking change because now paths that have the new special character in them already would no longer work. I guess this begs the question.. how does Docker deal with this? |
Issue Description
I'm running a
podman --rootfs
container with a rootfs path that is read-only and I want to be able to make some of the paths inside the container read/write with volumes. The problem is that--volume=/path
to give me an anonymous volume that will get cleaned up when the container gets cleaned up isn't working because the copy up to initially populate the volume is failing:I'm not sure why it's failing, but what's more important here is I actually don't want the volume to be pre-populated with anything. So I try with
:nocopy
but that clearly won't work:What does work is if I give the volume a name:
but clearly as shown above, now I'm leaking volumes when I'd prefer not to.
Is there any way to pass options when you don't specify a host path? I guess if the answer is currently "no" one future solution could be to come up with a special name the user can use to request an anonymous volume explicitly.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you expected
Anonymous volume with
:nocopy
option enforced.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: