mirror of
https://github.com/moby/moby.git
synced 2026-07-25 00:37:00 +00:00
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>