-
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
Mount with read-only option is rejected by podman #6379
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
openshift-ci-robot
added
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
labels
May 26, 2020
mheon
removed
the
kind/feature
Categorizes issue or PR as related to a new feature.
label
May 26, 2020
Thanks it looks like to match Docker we should support readonly, which sadly also does not work. |
Already implemented in #6380 |
mheon
added a commit
to mheon/libpod
that referenced
this issue
May 26, 2020
This is just an alias to the `ro` option, but it's already in the manpages (and Docker) so we might as well add support for it. Fixes containers#6379 Signed-off-by: Matthew Heon <[email protected]>
Thanks mheon, one small comment for the code. Not sure if it is feasible. |
snj33v
pushed a commit
to snj33v/libpod
that referenced
this issue
May 31, 2020
This is just an alias to the `ro` option, but it's already in the manpages (and Docker) so we might as well add support for it. Fixes containers#6379 Signed-off-by: Matthew Heon <[email protected]>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 23, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
BUG REPORT
/kind bug
/kind feature
Description
The
read-only
option of--mount
is rejected by podman, which is a mismatch with the manual.When run container with mount/read-only, it fails:
Replace
read-only
withro
, the command will work:But according to the manual, both
read-only
andro
should work.Steps to reproduce the issue:
Describe the results you received:
podman rejected the option with message: "Error: read-only: invalid mount option"
Describe the results you expected:
Option
read-only
can be accepted or the manual to be updated to match the actual behavior.Additional information you deem important (e.g. issue happens only occasionally):
I checked the code of parsing
--mount
flags for bind mount, the issue still exists in the latest code.https://github.com/containers/libpod/blob/master/cmd/podman/common/volumes.go#L212-L240
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Physical with Fedora 31.
The text was updated successfully, but these errors were encountered: