Add Exec IDs

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-28 12:54:10 -07:00
parent e283b3802d
commit f93bfb6233
36 changed files with 1441 additions and 2055 deletions

View File

@@ -22,6 +22,10 @@ var execCommand = cli.Command{
Name: "tty,t",
Usage: "allocate a TTY for the container",
},
cli.StringFlag{
Name: "exec-id",
Usage: "exec specific id for the process",
},
},
Action: func(context *cli.Context) error {
var (
@@ -60,7 +64,7 @@ var execCommand = cli.Command{
if tty {
io = containerd.StdioTerminal
}
process, err := task.Exec(ctx, pspec, io)
process, err := task.Exec(ctx, context.String("exec-id"), pspec, io)
if err != nil {
return err
}