Docker stats shows different data compared to cadvisor
According to Docker docs:
On Linux, the Docker CLI reports memory usage by subtracting page cache usage from the total memory usage.
https://docs.docker.com/engine/reference/commandline/stats/
So, to get from cAdvisor the same value as docker stats
show, you can use the following expression:container_memory_usage_bytes - container_memory_cache
I tried it out and got exactly the same values as docker stats
produces.