在命令行輸入docker stats
即可看見docker內運行的容器的物力資源使用情況,以我的為例
這個是會一直動態展示數據,按住Ctrl C
即可退出展示。當然你也可以使用命令docker stats ---no-stream
這樣子就展示當前狀態就直接退出了
前面幾項能明白啥意思,后面的就比較模糊,於是查閱了官方文檔
Column name | Description |
---|---|
CONTAINER ID and Name |
the ID and name of the container |
CPU % and MEM % |
the percentage of the host’s CPU and memory the container is using |
MEM USAGE / LIMIT |
the total memory the container is using, and the total amount of memory it is allowed to use |
NET I/O |
The amount of data the container has sent and received over its network interface |
BLOCK I/O |
The amount of data the container has read to and written from block devices on the host |
PIDs |
the number of processes or threads the container has created |
給大家翻譯一下
Column name | Description |
---|---|
CONTAINER ID and Name |
|
CPU % and MEM % |
容器正在使用的主機CPU和內存的百分比 |
MEM USAGE / LIMIT |
容器正在使用的總內存以及允許使用的總內存量 |
NET I/O |
容器通過其網絡接口發送和接收的總數據量 |
BLOCK I/O |
容器已從主機上的塊設備讀取和寫入的數據量 |
PIDs |
容器創建的進程或線程數 |