From 3aab84803dec4a28484b319531685276435263cd Mon Sep 17 00:00:00 2001 From: "John Howard (VM)" Date: Thu, 29 Mar 2018 11:45:45 -0700 Subject: [PATCH] Windows: GetLayerPath in graphdriver Signed-off-by: John Howard (VM) --- daemon/graphdriver/windows/windows.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/graphdriver/windows/windows.go b/daemon/graphdriver/windows/windows.go index b4fec2eb9d..7e30ed646b 100644 --- a/daemon/graphdriver/windows/windows.go +++ b/daemon/graphdriver/windows/windows.go @@ -340,6 +340,11 @@ func (d *Driver) Remove(id string) error { return nil } +// GetLayerPath gets the layer path on host +func (d *Driver) GetLayerPath(id string) (string, error) { + return d.dir(id), nil +} + // Get returns the rootfs path for the id. This will mount the dir at its given path. func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) { logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel)