diff --git a/components/engine/libcontainerd/client_local_windows.go b/components/engine/libcontainerd/client_local_windows.go index 209b00db67..c33e346a7a 100644 --- a/components/engine/libcontainerd/client_local_windows.go +++ b/components/engine/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/components/engine/oci/defaults.go b/components/engine/oci/defaults.go index 667dd4147a..0cc07ffa13 100644 --- a/components/engine/oci/defaults.go +++ b/components/engine/oci/defaults.go @@ -65,6 +65,7 @@ func DefaultLinuxSpec() specs.Spec { Effective: defaultCapabilities(), }, }, + Root: &specs.Root{}, } s.Mounts = []specs.Mount{ {