diff --git a/cmd/ctr/commands/run/run_windows.go b/cmd/ctr/commands/run/run_windows.go index af97a0be3..d22bb2ead 100644 --- a/cmd/ctr/commands/run/run_windows.go +++ b/cmd/ctr/commands/run/run_windows.go @@ -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)