diff options
author | Matej Vasek <mvasek@redhat.com> | 2021-11-28 20:34:07 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:32:15 -0500 |
commit | 7b8e66de0b020ff197112f598387c23415054512 (patch) | |
tree | e2d268d65dcef1c3b558099495d2e3d6347cbe83 /cmd/podman/common | |
parent | 741d98fadea94d4042922cb6edabb468f11a4eb3 (diff) | |
download | podman-7b8e66de0b020ff197112f598387c23415054512.tar.gz podman-7b8e66de0b020ff197112f598387c23415054512.tar.bz2 podman-7b8e66de0b020ff197112f598387c23415054512.zip |
fix: parsing of HostConfig.Mounts for container create
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r-- | cmd/podman/common/create_opts.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go index 50d7c446d..9accae327 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -102,7 +102,9 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c addField(&builder, "type", string(m.Type)) addField(&builder, "source", m.Source) addField(&builder, "target", m.Target) - addField(&builder, "ro", strconv.FormatBool(m.ReadOnly)) + if m.ReadOnly { + addField(&builder, "ro", "true") + } addField(&builder, "consistency", string(m.Consistency)) // Map any specialized mount options that intersect between *Options and cli options switch m.Type { |