mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
Before4bafaa00aa, if the daemon was killed while a container was running and the container shim is killed before the daemon is restarted, such as if the host system is hard-rebooted, the daemon would restore the container to the stopped state and set the exit code to 255. The aforementioned commit introduced a regression where the container's exit code would instead be set to 0. Fix the regression so that the exit code is once against set to 255 on restore. Signed-off-by: Cory Snider <csnider@mirantis.com> (cherry picked from commit165dfd6c3e) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>