1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client
Yong Tang 0e3846e280 Change HumanSize to BytesSize for memory output in docker stats.
This fix tries to fix the discrepancy between `docker stats` and
`docker run` where `docker run` uses RAMInBytes for all memory
related inputs but `docker stats` uses HumanSize for all memory
related outputs.

To be consistent, `docker stats` needs to use BytesSize for all
memory related outputs to conform to RAMInBytes in `docker run`.

This fix addresses this issue. As BytesSize is used, the test
cases needs to be adjusted to match `KiB/MiB/GiB` instead of
`KB/MB/GB`.

The documentation has also been updated.

This fix fixes #21765.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-04-08 20:01:50 +00:00
..
formatter do not trim one char from {{.Names}} each time it is used in --format 2016-04-06 11:04:13 -07:00
inspect Provide basic string manupilation functions for template executions. 2016-03-09 19:37:12 -05:00
attach.go Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
build.go add label support for build, networks and volumes 2016-03-22 11:49:06 -04:00
cli.go Pass upstream client's user agent through to registry on operations beyond pulls 2016-03-21 14:31:47 -07:00
client.go Make sure docker api client implements engine-api client. 2016-01-07 21:02:19 -05:00
commit.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
cp.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
create.go Removing DockerCli.pullImage as it's never used 2016-03-25 17:41:19 +01:00
diff.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
events.go Remove some unused structs and fields 2016-03-01 09:59:29 -08:00
exec.go cli: move setRawTerminal and restoreTerminal to holdHijackedConnection 2016-03-24 21:25:50 -04:00
exec_test.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
export.go Apply context changes to the client. 2016-02-04 13:59:57 -05:00
hijack.go cli: move setRawTerminal and restoreTerminal to holdHijackedConnection 2016-03-24 21:25:50 -04:00
history.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
images.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
import.go Apply context changes to the client. 2016-02-04 13:59:57 -05:00
info.go Add insecure registries to docker info 2016-03-31 08:27:24 +02:00
inspect.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
kill.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
load.go Add progress bar to docker load 2016-02-05 02:24:23 -05:00
login.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
logout.go api: client: fix login/logout with creds store 2016-03-02 17:51:50 +01:00
logs.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
network.go Fixing help text of "docker network --help" to be consistend 2016-04-01 14:14:09 +02:00
pause.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
port.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
ps.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
pull.go Client credentials store. 2016-02-29 13:01:31 -05:00
push.go Client credentials store. 2016-02-29 13:01:31 -05:00
rename.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
restart.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
rm.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
rmi.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
run.go Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
save.go Apply context changes to the client. 2016-02-04 13:59:57 -05:00
search.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
start.go Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
stats.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
stats_helpers.go Change HumanSize to BytesSize for memory output in docker stats. 2016-04-08 20:01:50 +00:00
stats_unit_test.go Change HumanSize to BytesSize for memory output in docker stats. 2016-04-08 20:01:50 +00:00
stop.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
tag.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
top.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
trust.go Request pull credentials when using trusted reference 2016-03-31 10:56:19 -07:00
trust_test.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
unpause.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
update.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
utils.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
version.go Update api/client file to use context 2016-03-16 20:25:09 +01:00
volume.go add label support for build, networks and volumes 2016-03-22 11:49:06 -04:00
wait.go Apply context changes to the client. 2016-02-04 13:59:57 -05:00