summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-02 19:52:52 +0100
committerGitHub <noreply@github.com>2020-12-02 19:52:52 +0100
commit2e55543ccab5ece6b005dbbc026774b9e0de665c (patch)
tree5be7aeb55806db63a015b0aa62c5f4882aba64e6
parente82ec90007af82ee297eec0cb3973801cd383264 (diff)
parentccc0201a6450d5a17a5200913b91d7b5778310ee (diff)
downloadpodman-2e55543ccab5ece6b005dbbc026774b9e0de665c.tar.gz
podman-2e55543ccab5ece6b005dbbc026774b9e0de665c.tar.bz2
podman-2e55543ccab5ece6b005dbbc026774b9e0de665c.zip
Merge pull request #8557 from baude/mountcommas
add commas between mount options
-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 af53a3b67..4b0e40df2 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -204,10 +204,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)
}