Add proper handling for SIGKILL'ed shim

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-09-01 11:29:24 -07:00
parent dd71165fc6
commit fe5f3d5581
4 changed files with 104 additions and 1 deletions

View file

@ -253,6 +253,8 @@ func (c *container) Delete() error {
args = append(args, "delete", c.id)
if b, derr := exec.Command(c.runtime, args...).CombinedOutput(); err != nil {
err = fmt.Errorf("%s: %q", derr, string(b))
} else if len(b) > 0 {
logrus.Debugf("%v %v: %q", c.runtime, args, string(b))
}
return err
}