Top-like interface for container metrics
Go to file
Peter Reisinger d0b5c6c854 added test for text view split line 2017-12-01 15:51:55 +00:00
.circleci remove deprecated -e option 2017-08-19 14:33:56 +09:00
_docs update build docs with dep link 2017-09-03 10:53:01 +09:00
config Toggle debug mode via env var 2017-03-19 15:10:03 +10:00
connector add logging for log reader start/stop 2017-11-28 09:38:32 -05:00
container gofmt 2017-11-22 09:27:38 -05:00
cwidgets remove textcol coloring 2017-08-28 10:48:13 +09: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 added test for text view split line 2017-12-01 15:51:55 +00:00
.gitignore add pids, IO stat 2017-03-12 02:35:40 +01:00
Dockerfile replace glide with godep 2017-09-03 10:33:14 +09:00
Gopkg.lock replace glide with godep 2017-09-03 10:33:14 +09:00
Gopkg.toml replace glide with godep 2017-09-03 10:33:14 +09:00
LICENSE add LICENSE 2017-03-09 10:41:32 +11:00
Makefile add checksum verify to make release 2017-11-19 15:06:29 +00:00
README.md Added 'view logs binding' 2017-11-25 18:30:50 +00:00
VERSION v0.6.1 2017-06-29 14:02:52 +00:00
colors.go add common status colors to global theme 2017-08-28 08:46:01 +09: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
grid.go Added 'view logs binding' 2017-11-25 18:30:50 +00:00
keys.go include <escape> in exit keygroup 2017-06-08 09:47:30 -03:00
main.go define flag vars in block 2017-11-29 03:03:46 +00:00
menus.go add resize handling to log view 2017-11-28 08:55:29 -05: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 single container 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.1/ctop-0.6.1-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.1/ctop-0.6.1-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
m Manage container (start, stop and/or remove)
l View container logs
q Quit ctop