Merge pull request #7866 from Iceber/ctr_tasks_kill
fix `ctr tasks kill` does not remove cni network under windows
This commit is contained in:
commit
3fefb98f99
@ -131,6 +131,8 @@ func NewContainer(ctx gocontext.Context, client *containerd.Client, context *cli
|
||||
return nil, err
|
||||
}
|
||||
opts = append(opts, oci.WithWindowsNetworkNamespace(ns.GetPath()))
|
||||
cniMeta := &commands.NetworkMetaData{EnableCni: true}
|
||||
cOpts = append(cOpts, containerd.WithContainerExtension(commands.CtrCniMetadataExtension, cniMeta))
|
||||
}
|
||||
if context.Bool("isolated") {
|
||||
opts = append(opts, oci.WithWindowsHyperV)
|
||||
|
Loading…
Reference in New Issue
Block a user