diff --git a/daemon/execdriver/native/driver.go b/daemon/execdriver/native/driver.go index fdd2a1137c..1e1df1f21b 100644 --- a/daemon/execdriver/native/driver.go +++ b/daemon/execdriver/native/driver.go @@ -245,7 +245,9 @@ func waitInPIDHost(p *libcontainer.Process, c libcontainer.Container) func() (*o } func (d *driver) Kill(c *execdriver.Command, sig int) error { + d.Lock() active := d.activeContainers[c.ID] + d.Unlock() if active == nil { return fmt.Errorf("active container for %s does not exist", c.ID) }