Przeglądaj źródła

Merge pull request #36738 from Microsoft/jjh/getlayerpath

Windows: Add GetLayerPath implementation in graphdriver
Yong Tang 7 lat temu
rodzic
commit
5c2e6064a1
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      daemon/graphdriver/windows/windows.go

+ 5 - 0
daemon/graphdriver/windows/windows.go

@@ -340,6 +340,11 @@ func (d *Driver) Remove(id string) error {
 	return nil
 	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.
 // 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) {
 func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) {
 	logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel)
 	logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel)