Merge pull request #36738 from Microsoft/jjh/getlayerpath

Windows: Add GetLayerPath implementation in graphdriver
This commit is contained in:
Yong Tang 2018-04-14 09:59:38 -07:00 committed by GitHub
commit 5c2e6064a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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)