mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07: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>