You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
544 B
Go
19 lines
544 B
Go
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
|
|
}
|