Merge pull request #1010 from runcom/oci-kill-all
oci: kill all processes in a container not just the main one
This commit is contained in:
commit
5b62041194
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ func (r *Runtime) StopContainer(c *Container, timeout int64) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.Path(c), "kill", c.id, c.GetStopSignal()); err != nil {
|
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.Path(c), "kill", "--all", c.id, c.GetStopSignal()); err != nil {
|
||||||
return fmt.Errorf("failed to stop container %s, %v", c.id, err)
|
return fmt.Errorf("failed to stop container %s, %v", c.id, err)
|
||||||
}
|
}
|
||||||
if timeout == -1 {
|
if timeout == -1 {
|
||||||
|
|
Loading…
Reference in a new issue