fb017754e1
Formatting the code with https://github.com/mvdan/gofumpt Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
538 B
Go
16 lines
538 B
Go
package system // import "github.com/docker/docker/pkg/system"
|
|
|
|
// containerdRuntimeSupported determines if containerd should be the runtime.
|
|
var 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
|
|
}
|