From 3838c314add208a57003611a6963784435863330 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 30 Sep 2016 09:40:15 -0700 Subject: [PATCH] Windows: Don't resolve volume dest Signed-off-by: John Howard --- container/container_windows.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/container/container_windows.go b/container/container_windows.go index 93c9aaaa35..35c0a7946f 100644 --- a/container/container_windows.go +++ b/container/container_windows.go @@ -55,12 +55,10 @@ func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog fun ) for _, mntPoint := range container.MountPoints { - dest, err := container.GetResourcePath(mntPoint.Destination) - if err != nil { - return err - } - volumeMounts = append(volumeMounts, volume.MountPoint{Destination: dest, Volume: mntPoint.Volume, ID: mntPoint.ID}) - + // Do not attempt to get the mountpoint destination on the host as it + // is not accessible on Windows in the case that a container is running. + // (It's a special reparse point which doesn't have any contextual meaning). + volumeMounts = append(volumeMounts, volume.MountPoint{Volume: mntPoint.Volume, ID: mntPoint.ID}) } // atm, this is a no-op.