oci: fix runc kill usage
In later versions of runC, `runc kill` *requires* the signal parameter to know what signal needs to be sent. Signed-off-by: Aleksa Sarai <asarai@suse.com>
This commit is contained in:
parent
6133465e42
commit
da975261e7
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp
|
|||
func (r *Runtime) StopContainer(c *Container) error {
|
||||
c.opLock.Lock()
|
||||
defer c.opLock.Unlock()
|
||||
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name); err != nil {
|
||||
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name, "TERM"); err != nil {
|
||||
return err
|
||||
}
|
||||
i := 0
|
||||
|
|
Loading…
Reference in a new issue