e.g. ``` $ docker run -i --restart always busybox sh pwd / exit 11 <...hang...> ``` This is because Attach(daemon side) and Run(client side) both hangs on WaitStop, if container is restarted too quickly, wait won't have chance to get exit signal. Signed-off-by: Zhang Wei <zhangwei555@huawei.com> Upstream-commit: c498d4700df8216ccefd6d2f03b5ebe6d6e9fd47 Component: engine
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