mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
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>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user