Browse code

Merge pull request #36738 from Microsoft/jjh/getlayerpath

Windows: Add GetLayerPath implementation in graphdriver

Yong Tang authored on 2018/04/15 01:59:38
Showing 1 changed files
... ...
@@ -340,6 +340,11 @@ func (d *Driver) Remove(id string) error {
340 340
 	return nil
341 341
 }
342 342
 
343
+// GetLayerPath gets the layer path on host
344
+func (d *Driver) GetLayerPath(id string) (string, error) {
345
+	return d.dir(id), nil
346
+}
347
+
343 348
 // Get returns the rootfs path for the id. This will mount the dir at its given path.
344 349
 func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) {
345 350
 	logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel)