Top-like interface for container metrics
Go to file
Bradley Cicenas 8fb7a8988f include <escape> in exit keygroup 2017-06-08 09:47:30 -03:00
_docs add quickstart section to debug doc 2017-06-08 09:33:07 -03:00
config Toggle debug mode via env var 2017-03-19 15:10:03 +10:00
cwidgets allow multi-line metadata in expanded view 2017-05-15 11:37:27 +01:00
logging add option to log debug messages to unix or tcp socket 2017-05-31 10:45:48 -04:00
metrics add pids, IO stat 2017-03-12 02:35:40 +01:00
widgets add keymap, handle wrapper for common keybindings 2017-03-15 08:34:58 +10:00
.gitignore add pids, IO stat 2017-03-12 02:35:40 +01:00
Dockerfile update circleci to build image from source 2017-03-19 16:14:56 +10:00
Dockerfile_build include Makefile instructions for building image from source 2017-03-19 15:10:03 +10:00
LICENSE add LICENSE 2017-03-09 10:41:32 +11:00
Makefile Update Makefile 2017-04-07 17:43:18 -04:00
README.md add release, homebrew badges to README 2017-05-28 17:03:19 -04:00
VERSION v0.5.1 2017-03-21 10:35:24 +10:00
circle.yml update circleci to build image from source 2017-03-19 16:14:56 +10:00
colors.go add option for color inversion 2017-03-15 10:02:46 +10:00
container.go filter Containers in place 2017-03-08 11:26:22 +11:00
cursor.go gofmt main package 2017-03-28 13:57:30 +10:00
debug.go add WidgetUpdater interface to container, replace struct fields with metamap 2017-03-06 19:25:59 +11:00
dockersource.go update port formatting for multi-line display 2017-05-15 11:54:35 +01:00
glide.lock vendor dependencies with glide 2017-03-12 10:15:21 +07:00
glide.yaml vendor dependencies with glide 2017-03-12 10:15:21 +07:00
grid.go Added page up/down features 2017-03-23 22:31:08 -04:00
keys.go include <escape> in exit keygroup 2017-06-08 09:47:30 -03:00
main.go add global Shutdown() method for exit cleanup 2017-03-23 16:48:25 +10:00
menus.go add keymap, handle wrapper for common keybindings 2017-03-15 08:34:58 +10:00
mocksource.go remove sleep from mocksource container creation 2017-03-09 10:26:29 +11:00
sort.go add sort by pid count 2017-03-12 21:11:19 +11:00

README.md

ctop

release homebrew

Top-like interface for container metrics

ctop provides a concise and condensed overview of real-time metrics for multiple containers:

ctop

as well as an expanded view for inspecting a specific container.

ctop currently comes with built-in support for Docker; connectors for other container and cluster systems are planned for future releases.

Install

Fetch the latest release for your platform:

Linux

sudo wget https://github.com/bcicen/ctop/releases/download/v0.5/ctop-0.5-linux-amd64 -O /usr/local/bin/ctop
sudo chmod +x /usr/local/bin/ctop

OS X

brew install ctop

or

sudo curl -Lo /usr/local/bin/ctop https://github.com/bcicen/ctop/releases/download/v0.5/ctop-0.5-darwin-amd64
sudo chmod +x /usr/local/bin/ctop

or run via Docker:

docker run -ti --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest

ctop is also available for Arch in the AUR

Building

Build steps can be found here.

Usage

ctop requires no arguments and will configure itself using the DOCKER_HOST environment variable

export DOCKER_HOST=tcp://127.0.0.1:4243
ctop

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
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
q Quit ctop