ctop 容器佔用宿主機cpu、內存等性能監控軟件:
參考:https://github.com/bcicen/ctop
release:https://github.com/bcicen/ctop/releases
安裝:在release站點,選擇相應架構,相應操作系統版本的二進制文件下載,
chmod +x 增加執行權限
修改名稱爲ctop,放到/usr/bin/下
在執行時需要root權限
help:
ctop - interactive container viewer
usage: ctop [options]
options:
-a show active containers only 僅顯示running的容器
-connector string
container connector to use (default “docker”)
-f string
filter containers
-h display this help dialog
-i invert default colors
-r reverse container sort order
-s string
select container sort field
-scale-cpu
show cpu as % of system total 將CPU顯示爲系統總數的百分比(默認是單CPU百分比)
-v output version information and exit
available connectors: docker, runc