diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-26 19:52:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 19:52:23 +0100 |
commit | ee667dcf97df4ed38b2046b33911dad882829bf8 (patch) | |
tree | ba5bfcb09d4d638562782c5a5a27a03c8a8053c9 | |
parent | 6352f19d884ed5e3826cef453aef5506f14b69c1 (diff) | |
parent | 21bc766ee3829776ecc2ff07b65b63c1eb2d529b (diff) | |
download | podman-ee667dcf97df4ed38b2046b33911dad882829bf8.tar.gz podman-ee667dcf97df4ed38b2046b33911dad882829bf8.tar.bz2 podman-ee667dcf97df4ed38b2046b33911dad882829bf8.zip |
Merge pull request #2448 from giuseppe/volumes-skip-user-binds
volume: do not create a volume if there is a bind
-rw-r--r-- | pkg/spec/createconfig.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go index 50e07ee74..31039bfdf 100644 --- a/pkg/spec/createconfig.go +++ b/pkg/spec/createconfig.go @@ -240,7 +240,7 @@ func (c *CreateConfig) GetVolumeMounts(specMounts []spec.Mount) ([]spec.Mount, e } for vol := range c.BuiltinImgVolumes { - if libpod.MountExists(specMounts, vol) { + if libpod.MountExists(specMounts, vol) || libpod.MountExists(m, vol) { continue } |