diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-09-06 13:52:13 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-09-09 17:17:39 -0400 |
commit | b6106341fb3a749ec37e59ee3290257a1729def1 (patch) | |
tree | 071d7849967793d1d57af0921e24ad71f8e1ac96 /libpod/container_internal_linux.go | |
parent | 290def5b921ca4b557e051e79963de7f429cfcd7 (diff) | |
download | podman-b6106341fb3a749ec37e59ee3290257a1729def1.tar.gz podman-b6106341fb3a749ec37e59ee3290257a1729def1.tar.bz2 podman-b6106341fb3a749ec37e59ee3290257a1729def1.zip |
When first mounting any named volume, copy up
Previously, we only did this for volumes created at the same time
as the container. However, this is not correct behavior - Docker
does so for all named volumes, even those made with
'podman volume create' and mounted into a container later.
Fixes #3945
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index e96af8536..03374a060 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -115,7 +115,9 @@ func (c *Container) prepare() (Err error) { createErr = createNetNSErr } if mountStorageErr != nil { - logrus.Errorf("Error preparing container %s: %v", c.ID(), createErr) + if createErr != nil { + logrus.Errorf("Error preparing container %s: %v", c.ID(), createErr) + } createErr = mountStorageErr } |