diff options
author | baude <bbaude@redhat.com> | 2020-12-02 09:56:43 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-12-02 10:19:21 -0600 |
commit | ccc0201a6450d5a17a5200913b91d7b5778310ee (patch) | |
tree | 5be7aeb55806db63a015b0aa62c5f4882aba64e6 /cmd/podman/common | |
parent | e82ec90007af82ee297eec0cb3973801cd383264 (diff) | |
download | podman-ccc0201a6450d5a17a5200913b91d7b5778310ee.tar.gz podman-ccc0201a6450d5a17a5200913b91d7b5778310ee.tar.bz2 podman-ccc0201a6450d5a17a5200913b91d7b5778310ee.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/common')
-rw-r--r-- | cmd/podman/common/create_opts.go | 4 |
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) } |