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 {