fix(ctr): enable networking for Windows containers
Signed-off-by: Markus Lippert <lippertmarkus@gmx.de>
This commit is contained in:
@@ -79,10 +79,6 @@ var platformRunFlags = []cli.Flag{
|
||||
Usage: "set the cpu shares",
|
||||
Value: 1024,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "cni",
|
||||
Usage: "enable cni networking for the container",
|
||||
},
|
||||
}
|
||||
|
||||
// NewContainer creates a new container
|
||||
@@ -449,3 +445,7 @@ func validNamespace(ns string) bool {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func getNetNSPath(_ gocontext.Context, task containerd.Task) (string, error) {
|
||||
return fmt.Sprintf("/proc/%d/ns/net", task.Pid()), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user