Windows: Graph remove custom interface and add central store
Signed-off-by: Stefan J. Wernli <swernli@microsoft.com> Windows: add support for images stored in alternate location. Signed-off-by: Stefan J. Wernli <swernli@microsoft.com> Upstream-commit: dfbb5520e3b35030f3eef38d5a2d86ad20ea0a2f Component: engine
This commit is contained in:
committed by
John Howard
parent
3ee405c46c
commit
73f39654a9
@ -9,6 +9,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@ -100,8 +101,13 @@ func (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
|
||||
}
|
||||
|
||||
for i := 0; i < len(c.LayerPaths); i++ {
|
||||
_, filename := filepath.Split(c.LayerPaths[i])
|
||||
g, err := hcsshim.NameToGuid(filename)
|
||||
if err != nil {
|
||||
return execdriver.ExitStatus{ExitCode: -1}, err
|
||||
}
|
||||
cu.Layers = append(cu.Layers, layer{
|
||||
ID: hcsshim.NewGUID(c.LayerPaths[i]).ToString(),
|
||||
ID: g.ToString(),
|
||||
Path: c.LayerPaths[i],
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user