summaryrefslogtreecommitdiff
path: root/pkg/system/init_windows.go
blob: 3c2a43ddbd397182cc1f94f59b7f8c2e8d2fead4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package system // import "github.com/docker/docker/pkg/system"

var (
	// containerdRuntimeSupported determines if containerd should be the runtime.
	containerdRuntimeSupported = false
)

// InitContainerdRuntime sets whether to use containerd for runtime on Windows.
func InitContainerdRuntime(cdPath string) {
	if len(cdPath) > 0 {
		containerdRuntimeSupported = true
	}
}

// ContainerdRuntimeSupported returns true if the use of containerd runtime is supported.
func ContainerdRuntimeSupported() bool {
	return containerdRuntimeSupported
}