# docker 中如何查看某个容器消耗的内存和CPU

Issue

欢迎在 Issue 中交流与讨论: Issue 43 (opens new window)

$ docker stats postgres
CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
adb85849e229        postgres            0.00%               3.328MiB / 1.796GiB   0.18%               0B / 0B             874GB / 2.6GB       7

Last Updated: 1/17/2021, 2:02:56 PM