Add windows spec generation

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-05-25 11:30:16 -07:00
parent d0b22290ec
commit 89037568d3
2 changed files with 83 additions and 2 deletions

View File

@@ -185,8 +185,10 @@ func WithHostNamespace(ns specs.LinuxNamespaceType) SpecOpts {
func WithImage(ctx context.Context, i Image) SpecOpts {
return func(s *specs.Spec) error {
image := i.(*image)
store := image.client.ContentStore()
var (
image = i.(*image)
store = image.client.ContentStore()
)
ic, err := image.i.Config(ctx, store)
if err != nil {
return err