惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
Recent Announcements
Recent Announcements
博客园 - 司徒正美
P
Proofpoint News Feed
博客园 - 聂微东
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
量子位
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
B
Blog RSS Feed
F
Full Disclosure
The Cloudflare Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
D
DataBreaches.Net
N
News and Events Feed by Topic
S
Secure Thoughts
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
U
Unit 42
G
Google Developers Blog
Forbes - Security
Forbes - Security
S
Schneier on Security
T
Threatpost
W
WeLiveSecurity
I
Intezer
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Security Latest
Security Latest
T
Troy Hunt's Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
有赞技术团队
有赞技术团队
S
Security Affairs
Cisco Talos Blog
Cisco Talos Blog
T
Tenable Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost

好好学习的郝

ClawdBot(OpenClaw)试用记录 编程辅助工具 Codex 入门篇 编程辅助工具 Claude Code 入门篇 Claude API 中转服务 Claude Relay Service LLM 接口管理和分发系统 New API 好好学Git:Git Submodule详解 编程辅助工具Cursor入门篇 好好学Golang:Golang问题记录 One API配置自定义渠道 FastAPI入门篇 好好学Docker:使用Docker安装配置AList 好好学Docker:自建RustDesk Server 好好学Linux:Ubuntu18 升级到 Ubuntu22 好好学Docker:使用Docker安装配置FileBrowser 邮箱配置中的SPF、DKIM、DMARC记录 One API 开发环境配置 LLM 接口管理和分发系统 One API 好好学K8S:K8S中的Leader Election机制 好好学Golang:Viper库
好好学Docker:容器指标查看工具ctop
本文作者: 好好学习的郝 · 2024-11-23 · via 好好学习的郝

ctop 是一个类似于 top 的容器指标查看工具。
ctop 提供了查询多个容器实时指标的视图,以及查询特定容器实时指标的视图。ctop 内置对 Docker 和 runC 的支持;未来版本计划支持其他容器和集群系统的连接器。

相关文档:

2. 安装ctop

推荐使用二进制安装:

1
2
wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop
chmod +x /usr/local/bin/ctop

3. 使用ctop

3.1. 查看全部容器指标

1、启动 ctop,默认界面查看全部容器指标

1
ctop

2、退出 ctop
按下 q,退出 ctop

3.2. 容器排序

ctop界面中,按下 s ,选择排序字段。
支持的字段包括:cpu,io,mem,mem %,name,pids,net,state

3.3. 查看单个容器指标

ctop界面中,选中容器后,按下 o

3.4. 查看单个容器日志

ctop页面中,选中容器后,按下 l

3.5. 进入容器内部

ctop页面中,选中容器后,按下 e

3.6. 查找容器

查找:ctop界面中,按下 f,输入关键词筛选容器,回车
退出查找:ctop界面中,按下 f,删除所有关键词,回车

3.7. 更多操作

ctop界面中,选中容器后回车,出现菜单
此时可以选择查看单个容器指标、查看单个容器日志,还可以停止、暂停、重启、进入容器内部。