d4738db561bd5d9a353cc262f439fad9a9f88b46
For now CLI `docker stats` will not block even if the container was not running is because there is a 2s timeout setting when waiting for the response. I think why we hang there waiting for the container to run is because we want to get the stats of container immediately when it starts running. But it will block when use the API directly, for example - curl - Google Chrome plugin, Postman - Firefox plugin, RESTClient This patch keeps the feature that getting info immediately when container starts running and in the meantime, it will not block when using the API directrly. Signed-off-by: Hu Keping <hukeping@huawei.com> Upstream-commit: d9bf8163ad8579cf2ab9f55925f9ea5037e5b525 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%