init_windows.go 538 B

12345678910111213141516
  1. package system // import "github.com/docker/docker/pkg/system"
  2. // containerdRuntimeSupported determines if containerd should be the runtime.
  3. var containerdRuntimeSupported = false
  4. // InitContainerdRuntime sets whether to use containerd for runtime on Windows.
  5. func InitContainerdRuntime(cdPath string) {
  6. if len(cdPath) > 0 {
  7. containerdRuntimeSupported = true
  8. }
  9. }
  10. // ContainerdRuntimeSupported returns true if the use of containerd runtime is supported.
  11. func ContainerdRuntimeSupported() bool {
  12. return containerdRuntimeSupported
  13. }