Add oom notifications and pid to create response
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
ec31245f54
commit
76cf593212
13 changed files with 269 additions and 128 deletions
|
@ -121,7 +121,8 @@ var StartCommand = cli.Command{
|
|||
}
|
||||
}
|
||||
}
|
||||
if _, err := c.CreateContainer(netcontext.Background(), r); err != nil {
|
||||
resp, err := c.CreateContainer(netcontext.Background(), r)
|
||||
if err != nil {
|
||||
fatal(err.Error(), 1)
|
||||
}
|
||||
if context.Bool("attach") {
|
||||
|
@ -140,6 +141,8 @@ var StartCommand = cli.Command{
|
|||
os.Exit(int(e.Status))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
fmt.Println(resp.Pid)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue