Merge pull request #36738 from Microsoft/jjh/getlayerpath

Windows: Add GetLayerPath implementation in graphdriver
Upstream-commit: 5c2e6064a1c5cb816081958e5a7079bc6b474940
Component: engine
This commit is contained in:
Yong Tang
2018-04-14 09:59:38 -07:00
committed by GitHub

View File

@ -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)