summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-26 19:52:23 +0100
committerGitHub <noreply@github.com>2019-02-26 19:52:23 +0100
commitee667dcf97df4ed38b2046b33911dad882829bf8 (patch)
treeba5bfcb09d4d638562782c5a5a27a03c8a8053c9 /pkg
parent6352f19d884ed5e3826cef453aef5506f14b69c1 (diff)
parent21bc766ee3829776ecc2ff07b65b63c1eb2d529b (diff)
downloadpodman-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
Diffstat (limited to 'pkg')
-rw-r--r--pkg/spec/createconfig.go2
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
}