diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-02-26 18:40:58 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-02-26 18:42:04 +0100 |
commit | 21bc766ee3829776ecc2ff07b65b63c1eb2d529b (patch) | |
tree | 521b901824075ef6f106d2ac1978f24676e31bed | |
parent | f9ef82ee7cf59deab6bf1b19e531fc02efe6a0d7 (diff) | |
download | podman-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>
-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 } |