diff --git a/oci/oci.go b/oci/oci.go index dc7b2e3a..a5f14ea3 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -554,7 +554,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 {