From ab2a4839d7f0d69769f6c88ebd5ba61cd6d09430 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 13 Oct 2017 14:34:51 +0200 Subject: [PATCH] oci: kill all processes in a container not just the main one Signed-off-by: Antonio Murdaca --- oci/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/oci.go b/oci/oci.go index 2e72b9cf..7548ef90 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -553,7 +553,7 @@ func (r *Runtime) StopContainer(c *Container, timeout int64) error { 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) } if timeout == -1 {