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