← 返回命令列表

Linux command

ctop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

ctop -a

Reverse

ctop -r

Invert

ctop -i

Example

ctop -h

说明

ctop provides a top-like interface for monitoring container metrics in real-time. It displays CPU usage, memory consumption, network I/O, and block I/O statistics for all containers on the system. The tool works with Docker, containerd, and other container runtimes by connecting to their respective sockets. The interface is fully interactive, allowing users to sort containers by different metrics, filter active vs all containers, and drill down into individual container logs and stats. ctop is particularly useful for DevOps workflows, debugging performance issues, and monitoring containerized applications without needing to remember complex docker stats commands. It provides a consolidated view across all containers similar to how htop works for system processes.

参数

-a
Show only active (running) containers
-r
Reverse sort order
-i
Invert default colors
-h
Display help
-s _field_
Select initial sort field

FAQ

What is the ctop command used for?

ctop provides a top-like interface for monitoring container metrics in real-time. It displays CPU usage, memory consumption, network I/O, and block I/O statistics for all containers on the system. The tool works with Docker, containerd, and other container runtimes by connecting to their respective sockets. The interface is fully interactive, allowing users to sort containers by different metrics, filter active vs all containers, and drill down into individual container logs and stats. ctop is particularly useful for DevOps workflows, debugging performance issues, and monitoring containerized applications without needing to remember complex docker stats commands. It provides a consolidated view across all containers similar to how htop works for system processes.

How do I run a basic ctop example?

Run `ctop -a` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in ctop?

Show only active (running) containers