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