Top-like interface for container metrics
Go to file
Bradley Cicenas a2011b8bc7 v0.6.1 2017-06-29 14:02:52 +00:00
_docs Create connectors.md 2017-06-14 09:32:48 -03:00
config Toggle debug mode via env var 2017-03-19 15:10:03 +10:00
connector add container log struct to models, collectors 2017-07-04 12:32:25 +00:00
container add LogCollector interface, docker, mock log collectors 2017-06-27 14:18:17 -03:00
cwidgets add offset sanity check to CompactGrid Align() 2017-07-07 15:43:03 +03:00
logging add option to log debug messages to unix or tcp socket 2017-05-31 10:45:48 -04:00
models add container log struct to models, collectors 2017-07-04 12:32:25 +00: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 combine image build steps 2017-06-29 14:02:52 +00:00
LICENSE add LICENSE 2017-03-09 10:41:32 +11:00
Makefile combine image build steps 2017-06-29 14:02:52 +00:00
README.md fix release url 2017-06-14 15:04:47 -03:00
VERSION v0.6.1 2017-06-29 14:02:52 +00:00
circle.yml remove arbitrary branch deploy commands 2017-06-12 11:25:02 -03:00
colors.go add option for color inversion 2017-03-15 10:02:46 +10:00
cursor.go skip offset updates in page scroll if no pages 2017-07-07 15:38:02 +03:00
debug.go add runtimestats, stack logging to debug 2017-06-28 09:12:24 -03:00
glide.lock update glide deps 2017-06-09 18:11:59 -03:00
glide.yaml update glide deps 2017-06-09 18:11:59 -03:00
grid.go disable timed display refresh while scrolling 2017-06-12 10:52:45 -03:00
keys.go include <escape> in exit keygroup 2017-06-08 09:47:30 -03:00
main.go add go runtime to version output 2017-06-19 12:23:39 +00:00
menus.go restructure container,connectors in subpackage 2017-06-08 11:51:02 -03: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 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 for your platform:

Linux

sudo wget https://github.com/bcicen/ctop/releases/download/v0.6.0/ctop-0.6.0-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.6.0/ctop-0.6.0-darwin-amd64
sudo chmod +x /usr/local/bin/ctop

Docker

docker run --rm -ti \
  --name=ctop \
  -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 uses Docker host variables by default. See connectors for further configuration options.

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