Add --with-ns flag to ctr run/create
Adds a useful flag to `ctr` to enable joining any existing Linux namespaces for any namespace types (network, pid, ipc, etc.) using the existing With helper in the oci package. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
@@ -65,6 +65,10 @@ var ContainerFlags = []cli.Flag{
|
||||
Name: "tty,t",
|
||||
Usage: "allocate a TTY for the container",
|
||||
},
|
||||
cli.StringSliceFlag{
|
||||
Name: "with-ns",
|
||||
Usage: "specify existing Linux namespaces to join at container runtime (format '<nstype>:<path>')",
|
||||
},
|
||||
}
|
||||
|
||||
func loadSpec(path string, s *specs.Spec) error {
|
||||
|
Reference in New Issue
Block a user