Add no-pivot flag to ctr

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2018-01-08 18:35:02 -08:00
parent 1df6287150
commit 0cc79a6ff6
7 changed files with 63 additions and 8 deletions

View File

@@ -41,9 +41,11 @@ var startCommand = cli.Command{
return err
}
tty := spec.Process.Terminal
task, err := NewTask(ctx, client, container, "", tty, context.Bool("null-io"))
var (
tty = spec.Process.Terminal
opts = getNewTaskOpts(context)
)
task, err := NewTask(ctx, client, container, "", tty, context.Bool("null-io"), opts...)
if err != nil {
return err
}