mirror of
https://github.com/moby/moby.git
synced 2026-07-13 19:12:11 +00:00
Signed-off-by: Charity Kathure <ckathure@microsoft.com> Co-authored-by: Olli Janatuinen <olli.janatuinen@gmail.com>
17 lines
542 B
Go
17 lines
542 B
Go
package system // import "github.com/docker/docker/pkg/system"
|
|
|
|
// containerdRuntimeSupported determines if containerd should be the runtime.
|
|
var containerdRuntimeSupported = false
|
|
|
|
// EnableContainerdRuntime sets whether to use containerd for runtime on Windows.
|
|
func EnableContainerdRuntime(cdPath string) {
|
|
if len(cdPath) > 0 {
|
|
containerdRuntimeSupported = true
|
|
}
|
|
}
|
|
|
|
// ContainerdRuntimeSupported returns true if the use of containerd runtime is supported.
|
|
func ContainerdRuntimeSupported() bool {
|
|
return containerdRuntimeSupported
|
|
}
|