-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moby#41479 from olljanat/ci-win-containerd-support
Windows CI: Add support for testing with containerd
- Loading branch information
Showing
13 changed files
with
85 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
package system // import "github.com/docker/docker/pkg/system" | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/sirupsen/logrus" | ||
) | ||
|
||
var ( | ||
// containerdRuntimeSupported determines if ContainerD should be the runtime. | ||
// As of March 2019, this is an experimental feature. | ||
// containerdRuntimeSupported determines if containerd should be the runtime. | ||
containerdRuntimeSupported = false | ||
) | ||
|
||
// InitContainerdRuntime sets whether to use ContainerD for runtime | ||
// on Windows. This is an experimental feature still in development, and | ||
// also requires an environment variable to be set (so as not to turn the | ||
// feature on from simply experimental which would also mean LCOW. | ||
func InitContainerdRuntime(experimental bool, cdPath string) { | ||
if experimental && len(cdPath) > 0 && len(os.Getenv("DOCKER_WINDOWS_CONTAINERD_RUNTIME")) > 0 { | ||
logrus.Warnf("Using ContainerD runtime. This feature is experimental") | ||
// 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. | ||
// ContainerdRuntimeSupported returns true if the use of containerd runtime is supported. | ||
func ContainerdRuntimeSupported() bool { | ||
return containerdRuntimeSupported | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters