Podman should respect ReadOnly flag in API calls. #12419
Labels
HTTP API
Bug is in RESTful API
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)
/kind bug
Description
In the
/container/create
API [1], one should be able to specifyHostConfig.Mounts[].ReadOnly
flag to indicate if the mount point is read-only or read-write. This flag is default tofalse
, i.e., the mount point should berw
by default.[1] https://docs.podman.io/en/latest/_static/api.html#operation/ContainerCreate
I found this issue via nektos/act#303
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
I would expect the mount point should be created as
rw
, sinceReadOnly
flag is false.touch
command should be able to write to the system.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Ye
Additional environment details (AWS, VirtualBox, physical, etc.):
$ uname -a Linux walla 5.14.16-arch1-1 #1 SMP PREEMPT Tue, 02 Nov 2021 22:22:59 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: