1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #27072 from Microsoft/jjh/fix26843

Windows: Don't resolve volume dest
This commit is contained in:
Brian Goff 2016-09-30 14:46:07 -04:00 committed by GitHub
commit d89fb40e1c

View file

@ -55,12 +55,10 @@ func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog fun
) )
for _, mntPoint := range container.MountPoints { for _, mntPoint := range container.MountPoints {
dest, err := container.GetResourcePath(mntPoint.Destination) // Do not attempt to get the mountpoint destination on the host as it
if err != nil { // is not accessible on Windows in the case that a container is running.
return err // (It's a special reparse point which doesn't have any contextual meaning).
} volumeMounts = append(volumeMounts, volume.MountPoint{Volume: mntPoint.Volume, ID: mntPoint.ID})
volumeMounts = append(volumeMounts, volume.MountPoint{Destination: dest, Volume: mntPoint.Volume, ID: mntPoint.ID})
} }
// atm, this is a no-op. // atm, this is a no-op.