mirror of https://github.com/docker/cli.git
Merge pull request #641 from cpuguy83/35295_memusage_pagecache_note
Add note about reported memory stats on linux
This commit is contained in:
commit
ecf06bba21
|
@ -34,6 +34,8 @@ The `docker stats` command returns a live data stream for running containers. To
|
||||||
|
|
||||||
If you want more detailed information about a container's resource usage, use the `/containers/(id)/stats` API endpoint.
|
If you want more detailed information about a container's resource usage, use the `/containers/(id)/stats` API endpoint.
|
||||||
|
|
||||||
|
> **Note**: On Linux, the Docker CLI reports memory usage by subtracting page cache usage from the total memory usage. The API does not perform such a calculation but rather provides the total memory usage and the amount from the page cache so that clients can use the data as needed.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Running `docker stats` on all running containers against a Linux daemon.
|
Running `docker stats` on all running containers against a Linux daemon.
|
||||||
|
|
Loading…
Reference in New Issue