Kaynağa Gözat

Merge pull request #35320 from Microsoft/jjh/lcow-set-oci-root

Fixes LCOW after containerd 1.0 introduced regressions
Kenfe-Mickaël Laventure 7 yıl önce
ebeveyn
işleme
2613c3d53c
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 1
      libcontainerd/client_local_windows.go
  2. 1 0
      oci/defaults.go

+ 1 - 1
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,

+ 1 - 0
oci/defaults.go

@@ -65,6 +65,7 @@ func DefaultLinuxSpec() specs.Spec {
 				Effective:   defaultCapabilities(),
 			},
 		},
+		Root: &specs.Root{},
 	}
 	s.Mounts = []specs.Mount{
 		{