github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/pkg/system/init_windows.go (about) 1 package system // import "github.com/docker/docker/pkg/system" 2 3 var ( 4 // containerdRuntimeSupported determines if containerd should be the runtime. 5 containerdRuntimeSupported = false 6 ) 7 8 // InitContainerdRuntime sets whether to use containerd for runtime on Windows. 9 func InitContainerdRuntime(cdPath string) { 10 if len(cdPath) > 0 { 11 containerdRuntimeSupported = true 12 } 13 } 14 15 // ContainerdRuntimeSupported returns true if the use of containerd runtime is supported. 16 func ContainerdRuntimeSupported() bool { 17 return containerdRuntimeSupported 18 }