8000 Support `HyperVIsolation` option in containerd executor in Windows by Vigilans · Pull Request #6224 · moby/buildkit · GitHub
[go: up one dir, main page]

Skip to content

Conversation

Vigilans
Copy link
Contributor

This is a continuation of review in #6206 (comment), and is the prerequisite of moby/moby#50942.

Instead of exposing an overly broad SpecOpts, this PR only exposes an Isolated flag to make buildkit create containers in Hyper-V VM in Windows.

The name Isolated is taken from the flag --isolated from ctr command in containerd:

var 
8000
platformRunFlags = []cli.Flag{
	&cli.BoolFlag{
		Name:  "isolated",
		Usage: "Run the container with vm isolation",
	},
}

if cliContext.Bool("isolated") {
	opts = append(opts, oci.WithWindowsHyperV)
}

Signed-off-by: Vigilans <vigilans@foxmail.com>
@iankingori
Copy link
Contributor

closes #5682

Signed-off-by: Vigilans <vigilans@foxmail.com>
@Vigilans Vigilans changed the title Support isolated option in containerd executor in Windows Support HyperVIsolation option in containerd executor in Windows Sep 16, 2025
@tonistiigi tonistiigi merged commit b932279 into moby:master Sep 16, 2025
139 checks passed
@riverar
Copy link
riverar commented Sep 16, 2025

Thanks! Excited to use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0