Add --net-host for testing host networking

Add `--net-host` to `ctr run` to test containers running in host
networking.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-05-15 13:41:57 -07:00
parent 7b2bf52f62
commit ac98ef7439
2 changed files with 12 additions and 5 deletions

View File

@@ -51,6 +51,10 @@ var runCommand = cli.Command{
Name: "readonly",
Usage: "set the containers filesystem as readonly",
},
cli.BoolFlag{
Name: "net-host",
Usage: "enable host networking for the container",
},
},
Action: func(context *cli.Context) error {
var (