moby--moby/api
Zhang Wei b8464c1c9b Using waitExitOrRemoved for `docker start`
Currently start command will invoke getExitCode - which is based on
Inspect API - to get returned exit code after container exits.
There's two race conditions here:

if container is started with Restart Policy, there's chance that the
container is restarted quickly before it calls getExitCode, under such
circumstance, the exit code is wrong.

if container is started with --rm, it's possible that container is
removed before getExitCode, in this situation, you can't get correct
exit code either.

Replace getExitCode with waitExitOrRemoved can solve this problem.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-08-26 00:16:49 +08:00
..
client Using waitExitOrRemoved for `docker start` 2016-08-26 00:16:49 +08:00
fixtures
server Merge pull request #25564 from coolljt0725/fix_inspect_network 2016-08-12 11:11:09 +02:00
types/backend Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
README.md
common.go Atomically save libtrust key file 2016-06-27 15:54:39 -07:00
common_test.go fix typos 2016-03-06 00:59:11 +08:00

README.md

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon