summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-10 22:24:43 +0200
committerGitHub <noreply@github.com>2019-09-10 22:24:43 +0200
commit997c4b56ed2121726e966afe9a102ed16ba78f93 (patch)
tree35a0b0a43f9c5b6d484f93564f01a373802e44df /libpod/runtime_ctr.go
parentc1761ba1ac4155bab82fb9b847ccf96489b98265 (diff)
parentb6106341fb3a749ec37e59ee3290257a1729def1 (diff)
downloadpodman-997c4b56ed2121726e966afe9a102ed16ba78f93.tar.gz
podman-997c4b56ed2121726e966afe9a102ed16ba78f93.tar.bz2
podman-997c4b56ed2121726e966afe9a102ed16ba78f93.zip
Merge pull request #3961 from mheon/copy_volume_contents
When first mounting any named volume, copy up
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index acd317d20..0b4fbda7a 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -275,10 +275,6 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container) (c *Contai
return nil, errors.Wrapf(err, "error creating named volume %q", vol.Name)
}
- if err := ctr.copyWithTarFromImage(vol.Dest, newVol.MountPoint()); err != nil && !os.IsNotExist(err) {
- return nil, errors.Wrapf(err, "Failed to copy content into new volume mount %q", vol.Name)
- }
-
ctrNamedVolumes = append(ctrNamedVolumes, newVol)
}