# ctop

> Top-like interface for monitoring Docker and runC container metrics in real-time

Stars: 17.8k · Language: Go · License: MIT · Categories: System

- Repository: https://github.com/bcicen/ctop
- Website: https://ctop.sh
- Page: https://www.trmn.sh/tools/ctop

## Install

- Homebrew: `brew install ctop`
- Pacman: `sudo pacman -S ctop`
- Scoop: `scoop install ctop`

## Overview

ctop is a terminal-based monitoring tool that provides a top-like interface for viewing container metrics in real-time. It displays CPU, memory, network, and block I/O statistics for multiple running containers in a condensed grid view, similar to how htop shows system processes. The tool includes built-in support for Docker and runC containers, with connectors for other container systems planned for future releases.

The interface offers both a multi-container overview and detailed single-container views for deeper inspection. Users can filter containers, sort by different metrics, toggle between running and all containers, and access container logs or exec into shells directly from the interface. Configuration options include customizable column displays, color schemes, and persistent settings that can be saved to a config file.

ctop requires no arguments and automatically connects to the local Docker daemon using standard Docker host variables. It's particularly useful for developers, DevOps engineers, and system administrators who need to monitor container resource usage without switching between multiple tools or dashboard interfaces.

### Installation

```bash
# via Homebrew
brew install ctop
```

```bash
# via Pacman
sudo pacman -S ctop
```

```bash
# via Scoop
scoop install ctop
```

## Alternatives

- [duf](https://www.trmn.sh/tools/duf.md): Disk usage utility with colorful output, filtering, and JSON export - replacement for df command (Go, 15.4k stars)
- [Kopia](https://www.trmn.sh/tools/kopia.md): Cross-platform backup tool that creates encrypted, compressed, deduplicated snapshots and stores them on cloud, network, or local storage. Includes CLI and GUI. (Go, 14.6k stars)
- [chezmoi](https://www.trmn.sh/tools/chezmoi.md): Dotfile manager that keeps a source state, previews changes with diff, and applies configuration across machines using templates. (Go, 22.1k stars)
- [witr](https://www.trmn.sh/tools/witr.md): Traces a process, port, container, or file back to the chain of supervisors, services, and shells that started it. Offers CLI, JSON output, and a TUI. (Go, 22.9k stars)
- [age](https://www.trmn.sh/tools/age.md): File encryption tool with small explicit keys, post-quantum support, and UNIX-style composability. (Go, 24.2k stars)

## Guides

- [Best Docker TUIs](https://www.trmn.sh/best/docker-tuis): Compare lazydocker, ducker, dtop, dive and ctop: Docker TUIs for containers, Compose, logs, stats and image layer analysis.

---

Canonical: https://www.trmn.sh/tools/ctop
