Upvotes 0 Share PDF

The 'docker stats' command reports incorrect memory utilization

Article ID: KB000436

As of Docker EE 17.03, the Docker daemon stats endpoint incorrectly reports memory utilization as the sum of rss and the page cache allocated to the container.

A backport of the upstream fix (https://github.com/docker/cli/pull/80) for this issue is being tracked by internal engineering issue orca/7241. Release of the fix for Docker Enterprise Edition is currently targeted for release with version 17.06. A backport to version 17.03 is also in progress.

The Linux kernel interface consumed by docker stats can be found under:

/sys/fs/cgroup/memory/docker/6b073e1c654af637b2337be7bd86d464502f0aa42f98c6f2c6ac83e4b5fe177/memory.stat

Further documentation for this kernel interface can be found here: