Merge pull request #8557 from baude/mountcommas

add commas between mount options
This commit is contained in:
OpenShift Merge Robot 2020-12-02 19:52:52 +01:00 committed by GitHub
commit 2e55543cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -204,10 +204,10 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, cgroup
for _, m := range cc.HostConfig.Mounts { for _, m := range cc.HostConfig.Mounts {
mount := fmt.Sprintf("type=%s", m.Type) mount := fmt.Sprintf("type=%s", m.Type)
if len(m.Source) > 0 { if len(m.Source) > 0 {
mount += fmt.Sprintf("source=%s", m.Source) mount += fmt.Sprintf(",source=%s", m.Source)
} }
if len(m.Target) > 0 { if len(m.Target) > 0 {
mount += fmt.Sprintf("dest=%s", m.Target) mount += fmt.Sprintf(",dst=%s", m.Target)
} }
mounts = append(mounts, mount) mounts = append(mounts, mount)
} }