Merge pull request #305 from cyphar/runc-kill-arguments
oci: fix runc kill usage
This commit is contained in:
commit
c0e3c08a17
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