From ab0de1752667926b626b6a839d31ff7222a07b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Wed, 29 Jul 2015 14:12:57 +0300 Subject: [PATCH] Multiple fixes to 'docker stats' output: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add space between values in docker stats output for easier parsing Old output could not be parsed easily because there were columns that did not have any separator. Also values that are together without any space is difficult to read even for humans. * Update unit.HumanSize comment to match what the does actually does Signed-off-by: Otto Kekäläinen --- docs/reference/commandline/stats.md | 8 ++++---- man/docker-stats.1.md | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/reference/commandline/stats.md b/docs/reference/commandline/stats.md index 7e67099e0e..6ee026a75f 100644 --- a/docs/reference/commandline/stats.md +++ b/docs/reference/commandline/stats.md @@ -21,9 +21,9 @@ weight=1 Running `docker stats` on multiple containers $ docker stats redis1 redis2 - CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O - redis1 0.07% 796 KB/64 MB 1.21% 788 B/648 B - redis2 0.07% 2.746 MB/64 MB 4.29% 1.266 KB/648 B + CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O + redis1 0.07% 796 KB / 64 MB 1.21% 788 B / 648 B + redis2 0.07% 2.746 MB / 64 MB 4.29% 1.266 KB / 648 B The `docker stats` command will only return a live stream of data for running @@ -31,4 +31,4 @@ containers. Stopped containers will not return any data. > **Note:** > If you want more detailed information about a container's resource -> usage, use the API endpoint. \ No newline at end of file +> usage, use the API endpoint. diff --git a/man/docker-stats.1.md b/man/docker-stats.1.md index 4b48588559..08502f44a5 100644 --- a/man/docker-stats.1.md +++ b/man/docker-stats.1.md @@ -25,7 +25,6 @@ Display a live stream of one or more containers' resource usage statistics Run **docker stats** with multiple containers. $ docker stats redis1 redis2 - CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O - redis1 0.07% 796 KB/64 MB 1.21% 788 B/648 B - redis2 0.07% 2.746 MB/64 MB 4.29% 1.266 KB/648 B - + CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O + redis1 0.07% 796 KB / 64 MB 1.21% 788 B / 648 B + redis2 0.07% 2.746 MB / 64 MB 4.29% 1.266 KB / 648 B