[ctr] add --detach to run

This allows the user to detach from the container after it has started.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-10-18 11:17:55 -04:00
parent 2e004086cf
commit c7dc795455
2 changed files with 17 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ var taskStartCommand = cli.Command{
tty := spec.Process.Terminal
task, err := newTask(ctx, container, "", tty, context.Bool("null-io"))
task, err := newTask(ctx, client, container, "", tty, context.Bool("null-io"))
if err != nil {
return err
}