docker/docker — pull request #8990 by duglin (2014-11-06 02:26:20+00:00)
Title: Make sure that if a container can't start we set the exitcode to non-zero value

See #8379 - if the container doesn't start I added code to make sure that if no other processing sets the container.exitCode to a non-zero value when we make sure its done before we return. I also made sure that while trying to start the CMD/ENTRYPOINT, if it fails, then we set the container.exitCode to the exitStatus from the exec().

This replaces PR #8619 which had some weird git issue going on - but its the same code changes so all comments apply.

Closes #8379

Signed-off-by: Doug Davis