diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-29 22:10:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 22:10:18 +0100 |
commit | 60529142223218483ea3d68975bea86aa89ac6fe (patch) | |
tree | 5476c0e2a334d7b0d3879b10bfed1f8c958dbecd /cmd/podman/common/create_opts.go | |
parent | c234c20a70304d526952f167c7c00122e5d54267 (diff) | |
parent | 697ff213dd36b78a4857c07b4c6a82246d0a875f (diff) | |
download | podman-60529142223218483ea3d68975bea86aa89ac6fe.tar.gz podman-60529142223218483ea3d68975bea86aa89ac6fe.tar.bz2 podman-60529142223218483ea3d68975bea86aa89ac6fe.zip |
Merge pull request #12433 from matejvasek/fix-mount-parsing
fix: parsing of HostConfig.Mounts for container create
Diffstat (limited to 'cmd/podman/common/create_opts.go')
-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 aacdfd274..abb55f8c7 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -103,7 +103,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 { |