Dry is a terminal application to manage Docker. It shows information about Containers, Images and Networks, and, if running a Docker Swarm, it also shows all kinds of information about the state of the Swarm cluster. It can connect to both local or remote Docker daemons.
Besides showing information, it can be used to manage Docker. Most of the commands that the official Docker CLI has, are available in dry with the same behaviour. A list of available commands and their keybinds can be found in dry's help screen or in this README.
Lastly, it can also be used as a monitoring tool for Docker containers.
Dry is installed as a single binary and does not require external libraries.
The demo below shows a dry session.
Keybinding | Description |
---|---|
% | filter list |
F1 | sort list |
F5 | refresh list |
F8 | show docker disk usage |
F9 | show last 10 docker events |
F10 | show docker info |
1 | show container list |
2 | show image list |
3 | show network list |
4 | show node list (on Swarm mode) |
5 | show service list (on Swarm mode) |
ArrowUp | move the cursor one line up |
ArrowDown | move the cursor one line down |
g | move the cursor to the top |
G | move the cursor to the bottom |
q | quit dry |
Keybinding | Description |
---|---|
Enter | show container command menu |
F2 | toggle on/off showing stopped containers |
i | inspect |
l | container logs |
e | remove |
s | stats |
Ctrl+e | remove all stopped containers |
Ctrl+k | kill |
Ctrl+r | start/restart |
Ctrl+t | stop |
Keybinding | Description |
---|---|
i | history |
r | run command in new container |
Ctrl+d | remove dangling images |
Ctrl+e | remove image |
Ctrl+f | remove image (force) |
Enter | inspect |
Keybinding | Description |
---|---|
Ctrl+e | remove network |
Enter | inspect |
Keybinding | Description |
---|---|
i | inspect service |
l | service logs |
Ctrl+r | remove service |
Ctrl+s | scale service |
Enter | show service tasks |
Keybinding | Description |
---|---|
ArrowUp | move the cursor one line up |
ArrowDown | move the cursor one line down |
g | move the cursor to the beginning of the buffer |
G | move the cursor to the end of the buffer |
n | after search, move forwards to the next search hit |
N | after search, move backwards to the previous search hit |
s | search |
pg up | move the cursor "screen size" lines up |
pg down | move the cursor "screen size" lines down |
The easiest way to install the latest binaries for Linux and Mac is to run this in your shell:
curl -sSf https://moncho.github.io/dry/dryup.sh | sudo sh
If you dont like to curl | sh, binaries are provided.
If you're on OS X and want to use homebrew:
brew tap moncho/dry
brew install dry
docker run -it -v /var/run/docker.sock:/var/run/docker.sock moncho/dry
yaourt -S dry-bin
Open a console, type dry
. It will try to connect to:
- A Docker host given as a parameter (-H).
- if none given, a Docker host defined in the $DOCKER_HOST environment variable.
- if not defined, to unix:///var/run/docker.sock.
If no connection with a Docker host succeeds, dry will exit immediately.
dry -p
launches dry with pprof package active.
All contributions are welcome.
- Fork the project.
- Make changes on a topic branch.
- Pull request.
Code released under the MIT license. See LICENSE for the full license text.
Built on top of:
Also reused some code and ideas from the Docker project.