diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-10 22:24:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 22:24:43 +0200 |
commit | 997c4b56ed2121726e966afe9a102ed16ba78f93 (patch) | |
tree | 35a0b0a43f9c5b6d484f93564f01a373802e44df /libpod/volume_internal.go | |
parent | c1761ba1ac4155bab82fb9b847ccf96489b98265 (diff) | |
parent | b6106341fb3a749ec37e59ee3290257a1729def1 (diff) | |
download | podman-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/volume_internal.go')
-rw-r--r-- | libpod/volume_internal.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/volume_internal.go b/libpod/volume_internal.go index 2e886e1b0..42b935e7c 100644 --- a/libpod/volume_internal.go +++ b/libpod/volume_internal.go @@ -11,9 +11,11 @@ import ( func newVolume(runtime *Runtime) (*Volume, error) { volume := new(Volume) volume.config = new(VolumeConfig) + volume.state = new(VolumeState) volume.runtime = runtime volume.config.Labels = make(map[string]string) volume.config.Options = make(map[string]string) + volume.state.NeedsCopyUp = true return volume, nil } |