-
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
Quadlet option Readonly sets --read-only-tmpfs to false #20439
Comments
@job79 thanks for bringing this up Quadlet uses the combination of two keys:
So, if all you're looking for is to remove @alexlarsson do you remember why you tied these two keys together in this manner? |
I agree this should stay with the default of read-only-tmpfs=true. |
Thanks! This does indeed work, but still don't know if it is a good idea to use Personally I would expect a But maybe there is a good reason why |
I can't say I 100% sure remember the details, but I think the reason I did this is that if --read-only* is not used, then there is no way to get a transient /tmp, so I added VolatileTmp to do this. This was added before the ReadOnly option. And once there was a VolatileTmp option it felt weird to have a newly added ReadOnly=true change the default value of the VolatileTmp option. Otoh, I agree that its weird that ReadOnly differs from --read-only. |
Lets change ReadOnly to match --read-only and then users could set the VolatileTmp=false to get the current behaviour. I am pretty sure noone is using ReadOnly in the current manner. |
I'll try to summarize the behavior we want to see before I implement it.
Since podman accepts Now about, WDYT? |
Keep it but "undocument" it. If users are using it, it will continue to work, but remove the information from the man pages. |
Issue Description
When using
ReadOnly=true
inside a quadlet file, the following flags are added to the generated service file:--read-only --read-only-tmpfs=false
This is probably not a great idea because the default value for
read-only-tmpfs
is true when usingpodman run
and there is no easy way to set this value to true using the quadlet file. This also breaks existing installations that expect to have a writable /dev/shm and are usingReadOnly=true
Used quadlet file and generated run line:
Steps to reproduce the issue
Steps to reproduce the issue
ReadOnly
to true/usr/libexec/podman/quadlet -dryrun -user
Describe the results you received
ReadOnly=true
inside a quadlet file adds the following flags to the generated service:--read-only --read-only-tmpfs=false
Describe the results you expected
I expect
--read-only-tmpfs=false
to not be set at all, because the quadlet documentation implies thatReadOnly=true
only adds--read-only
.There should be a separate setting that can set
--read-only-tmpfs
to false.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: