aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-12-02 09:56:43 -0600
committerMatthew Heon <mheon@redhat.com>2020-12-07 15:15:11 -0500
commit1c16f3a5e234e3b050eb31353c5fb10e71c02c61 (patch)
tree2c8f3c2e32b93b19801a621e08bb3abcabc64f26 /cmd/podman
parent3f6197e3d2a55ab843dee7be922706a079d875a4 (diff)
downloadpodman-1c16f3a5e234e3b050eb31353c5fb10e71c02c61.tar.gz
podman-1c16f3a5e234e3b050eb31353c5fb10e71c02c61.tar.bz2
podman-1c16f3a5e234e3b050eb31353c5fb10e71c02c61.zip
add commas between mount options
when formatting mount options into a string for the compat container create, the options need to be comma delimited. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common/create_opts.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index 6dc43dbc6..23de21676 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -203,10 +203,10 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, cgroup
for _, m := range cc.HostConfig.Mounts {
mount := fmt.Sprintf("type=%s", m.Type)
if len(m.Source) > 0 {
- mount += fmt.Sprintf("source=%s", m.Source)
+ mount += fmt.Sprintf(",source=%s", m.Source)
}
if len(m.Target) > 0 {
- mount += fmt.Sprintf("dest=%s", m.Target)
+ mount += fmt.Sprintf(",dst=%s", m.Target)
}
mounts = append(mounts, mount)
}