Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bcicen/ctop
Top-like interface for container metrics
https://github.com/bcicen/ctop
command-line commandline containers docker monitoring runc top
Last synced: 4 days ago
JSON representation
Top-like interface for container metrics
- Host: GitHub
- URL: https://github.com/bcicen/ctop
- Owner: bcicen
- License: mit
- Created: 2016-12-27T02:25:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T11:15:48.000Z (5 months ago)
- Last Synced: 2024-12-02T10:00:28.710Z (11 days ago)
- Topics: command-line, commandline, containers, docker, monitoring, runc, top
- Language: Go
- Homepage: https://ctop.sh
- Size: 3.45 MB
- Stars: 15,619
- Watchers: 174
- Forks: 528
- Open Issues: 111
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - ctop - [Top-like](https://ctop.sh) interface (e.g. htop) for container metrics. (Utilities / Utility/Miscellaneous)
- awesome - ctop
- awesome-observability - ctop - Top-like interface for container metrics. (3. Collect / Metrics)
- awesome-tuis - ctop - like interface for container metrics (Table of Contents)
- awesome-ccamel - bcicen/ctop - Top-like interface for container metrics (Go)
- awesome-starred-test - bcicen/ctop - Top-like interface for container metrics (Go)
- awesome-repositories - bcicen/ctop - Top-like interface for container metrics (Go)
- awesome-starred - ctop - Top-like interface for container metrics (Go)
- awesome-starred - bcicen/ctop - Top-like interface for container metrics (monitoring)
- awesome-profiling - ctop - Top-like interface for container metrics. (1. System Overview)
- links - ctop - `top` for containers. (Command Line Tools)
- awesome-docker - ctop (2) - Top-like interface for container metrics (Golang) by [@bcicen](https://github.com/bcicen/) (Container Operations / User Interface)
- jimsghstars - bcicen/ctop - Top-like interface for container metrics (Go)
- awesome-list - ctop - like interface for container metrics | bcicen | 11833 | (Go)
- awesome-go - ctop - [Top-like](https://ctop.sh) interface (e.g. htop) for container metrics. Stars:`15.6K`. (Utilities / Utility/Miscellaneous)
- awesome-list-docker - ctop - like interface for container metrics (containers)
- awesome-go - ctop - Top-like interface for container metrics - ★ 7582 (Utilities)
- awesome-go-extra - ctop - like interface for container metrics|13189|506|73|2016-12-27T02:25:57Z|2022-08-01T11:32:57Z| (Utilities / Fail injection)
- awesome-docker - ctop (2) - :skull: Top-like interface for container metrics (Golang) by [@bcicen](https://github.com/bcicen/) (Container Operations / User Interface)
- awesome-sysadmin-tools - ctop - Top for containers (Containers / Container tools)
- awesome - ctop - Top-like interface for container metrics (Go)
- awesome-ops - bcicen/ctop - 12-27|2024-07-08 | 一个用于在容器中执行类似 top 命令的命令行工具 | (Docker-Tools)
- Awesome-GitHub-Repo - ctop - 一款给力的 Docker 监控工具。[<img src="https://tva1.sinaimg.cn/large/008i3skNly1gxlhtmg11mj305k05k746.jpg" alt="微信" width="18px" height="18px" />](https://mp.weixin.qq.com/s?__biz=MzUxNjg4NDEzNA%3D%3D&chksm=f9a1d521ced65c373d8970ddb8789ae7217e70c33981b00b7cdd6e4a13e528a9cba6509e1aad&idx=1&mid=2247485160&scene=21&sn=8c3ccfa18af516589f226bef3e8335d3#wechat_redirect) (开源工具 / 命令行工具)
- StarryDivineSky - bcicen/ctop
- my-awesome - bcicen/ctop - line,commandline,containers,docker,monitoring,runc,top pushed_at:2024-07 star:15.6k fork:0.5k Top-like interface for container metrics (Go)
- awesome - bcicen/ctop - Top-like interface for container metrics (Go)
- awesome - bcicen/ctop - Top-like interface for container metrics (Go)
README
#
![release][release] ![homebrew][homebrew] ![macports][macports] ![scoop][scoop]
Top-like interface for container metrics
`ctop` provides a concise and condensed overview of real-time metrics for multiple containers:
as well as a [single container view][single_view] for inspecting a specific container.
`ctop` comes with built-in support for Docker and runC; connectors for other container and cluster systems are planned for future releases.
## Install
Fetch the [latest release](https://github.com/bcicen/ctop/releases) for your platform:
#### Debian/Ubuntu
Maintained by a [third party](https://packages.azlux.fr/)
```bash
sudo apt-get install ca-certificates curl gnupg lsb-release
curl -fsSL https://azlux.fr/repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/azlux-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian \
$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/azlux.list >/dev/null
sudo apt-get update
sudo apt-get install docker-ctop
```#### Arch
```bash
sudo pacman -S ctop
```_`ctop` is also available for Arch in the [AUR](https://aur.archlinux.org/packages/ctop-bin/)_
#### Linux (Generic)
```bash
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-linux-amd64 -O /usr/local/bin/ctop
sudo chmod +x /usr/local/bin/ctop
```#### OS X
```bash
brew install ctop
```
or
```bash
sudo port install ctop
```
or
```bash
sudo curl -Lo /usr/local/bin/ctop https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-darwin-amd64
sudo chmod +x /usr/local/bin/ctop
```#### Windows
`ctop` is available in [scoop](https://scoop.sh/):
```powershell
scoop install ctop
```#### Docker
```bash
docker run --rm -ti \
--name=ctop \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
quay.io/vektorlab/ctop:latest
```## Building
Build steps can be found [here][build].
## Usage
`ctop` requires no arguments and uses Docker host variables by default. See [connectors][connectors] for further configuration options.
### Config file
While running, use `S` to save the current filters, sort field, and other options to a default config path (`~/.config/ctop/config` on XDG systems, else `~/.ctop`).
Config file values will be loaded and applied the next time `ctop` is started.
### Options
Option | Description
--- | ---
`-a` | show active containers only
`-f ` | set an initial filter string
`-h` | display help dialog
`-i` | invert default colors
`-r` | reverse container sort order
`-s` | select initial container sort field
`-v` | output version information and exit### Keybindings
| Key | Action |
| :----------------------: | ---------------------------------------------------------- |
| <ENTER> | Open container menu |
| a | Toggle display of all (running and non-running) containers |
| f | Filter displayed containers (`esc` to clear when open) |
| H | Toggle ctop header |
| h | Open help dialog |
| s | Select container sort field |
| r | Reverse container sort order |
| o | Open single view |
| l | View container logs (`t` to toggle timestamp when open) |
| e | Exec Shell |
| c | Configure columns |
| S | Save current configuration to file |
| q | Quit ctop |[build]: _docs/build.md
[connectors]: _docs/connectors.md
[single_view]: _docs/single.md
[release]: https://img.shields.io/github/release/bcicen/ctop.svg "ctop"
[homebrew]: https://img.shields.io/homebrew/v/ctop.svg "ctop"
[macports]: https://repology.org/badge/version-for-repo/macports/ctop.svg?header=macports "ctop"
[scoop]: https://img.shields.io/scoop/v/ctop?bucket=main "ctop"## Alternatives
See [Awesome Docker list](https://github.com/veggiemonk/awesome-docker/blob/master/README.md#terminal) for similar tools to work with Docker.