-
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 run --mount "ro=false" results in read-only mount #2980
Comments
On mount vs volume - they are two syntaxes to accomplish the same goal.
There are some bugs in mount we're looking to resolve, but once those are
fixed they will be functionally identical.
…On Fri, Apr 19, 2019, 18:16 caffeinejolt ***@***.***> wrote:
podman-0.12.1.2-2.git9551f6b.el7.centos.x86_64
centos-release-7-6.1810.2.el7.centos.x86_64
If I do not specify any "ro" value - it does default to writable. However,
the docs indicate that "ro=false" is the default - but if I specify the
default, I end up with a read-only mount.
On a side-note, the docs don't really state the difference between --mount
and --volume - if you read man podman-run, the reader is left to assume
they are two ways of specifying a bind mount - is there any functional
difference? Or is it all the same bind mount in the end?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2980>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3AOCBC7URLX4BJQVMT4C3PRJADVANCNFSM4HHIHE5A>
.
|
There's a very large rework to the --mount flag going in at #2959 - a little too large for me to be comfortable adding more to it - but once it lands I'll get a fix for this in. The issue is that we're not checking if some mount flags (ro, rw, probably more) accept an argument, so if we see them we unconditionally toggle read-only on. |
Cool - I would rate this as a pretty low priority fix anyways since there are easy workarounds. |
@caffeinejolt @mheon is this still a bug? |
Yes. I'll work on this one tomorrow. |
The 'podman run --mount' flag previously allowed the 'ro' option to be specified, but was missing the ability to set it to a bool (as is allowed by docker). Add that. While we're at it, allow setting 'rw' explicitly as well. Fixes containers#2980 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
podman-0.12.1.2-2.git9551f6b.el7.centos.x86_64
centos-release-7-6.1810.2.el7.centos.x86_64
If I do not specify any "ro" value - it does default to writable. However, the docs indicate that "ro=false" is the default - but if I specify the default, I end up with a read-only mount.
On a side-note, the docs don't really state the difference between --mount and --volume - if you read man podman-run, the reader is left to assume they are two ways of specifying a bind mount - is there any functional difference? Or is it all the same bind mount in the end?
The text was updated successfully, but these errors were encountered: