mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ad2fa39459
Only register a container once it's successfully started. This avoids a race condition where the daemon is killed while in the process of calling `libcontainer.Container.Start`, and ends up killing -1. There is a time window where the container `initProcess` is not set, and its PID unknown. This commit fixes the race Engine side. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com> |
||
---|---|---|
.. | ||
template | ||
create.go | ||
driver.go | ||
driver_unsupported.go | ||
driver_unsupported_nocgo.go | ||
exec.go | ||
init.go |