mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36738 from Microsoft/jjh/getlayerpath
Windows: Add GetLayerPath implementation in graphdriver
This commit is contained in:
commit
5c2e6064a1
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue