From 71651e0b801ae874b4a899e3c47add9e3fbc2400 Mon Sep 17 00:00:00 2001 From: John Howard Date: Thu, 26 Oct 2017 14:16:43 -0700 Subject: [PATCH] Fixes LCOW after containerd 1.0 introduced regressions Signed-off-by: John Howard --- libcontainerd/client_local_windows.go | 2 +- oci/defaults.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libcontainerd/client_local_windows.go b/libcontainerd/client_local_windows.go index 209b00db67..c33e346a7a 100644 --- a/libcontainerd/client_local_windows.go +++ b/libcontainerd/client_local_windows.go @@ -513,7 +513,7 @@ func (c *client) createLinux(id string, spec *specs.Spec, runtimeOptions interfa ctr := &container{ id: id, execs: make(map[string]*process), - isWindows: true, + isWindows: false, ociSpec: spec, hcsContainer: hcsContainer, status: StatusCreated, diff --git a/oci/defaults.go b/oci/defaults.go index 667dd4147a..0cc07ffa13 100644 --- a/oci/defaults.go +++ b/oci/defaults.go @@ -65,6 +65,7 @@ func DefaultLinuxSpec() specs.Spec { Effective: defaultCapabilities(), }, }, + Root: &specs.Root{}, } s.Mounts = []specs.Mount{ {