summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-26 18:40:58 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-26 18:42:04 +0100
commit21bc766ee3829776ecc2ff07b65b63c1eb2d529b (patch)
tree521b901824075ef6f106d2ac1978f24676e31bed /pkg
parentf9ef82ee7cf59deab6bf1b19e531fc02efe6a0d7 (diff)
downloadpodman-21bc766ee3829776ecc2ff07b65b63c1eb2d529b.tar.gz
podman-21bc766ee3829776ecc2ff07b65b63c1eb2d529b.tar.bz2
podman-21bc766ee3829776ecc2ff07b65b63c1eb2d529b.zip
volume: do not create a volume if there is a bind
if there is already a bind mount specified for the target, do not create a new volume. Regression introduced by 52df1fa7e054d577e8416d1d46db1741ad324d4a Closes: https://github.com/containers/libpod/issues/2441 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
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
}