Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return an empty stats if the container is restarting
In case, a container is restarting indefinitely running "docker stats --no-stream <restarting_container>" is suspended. To fix this, the daemon makes sure the container is either not running or restarting if `--no-stream` is set to true and if so returns an empty stats. Should fix moby#27772. Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
- Loading branch information