dry - 一个用于管理Docker容器和镜像的终端应用程序

网友投稿 823 2022-10-29

dry - 一个用于管理docker容器和镜像的终端应用程序

dry - 一个用于管理Docker容器和镜像的终端应用程序

dry

Dry is a terminal application to manage Docker and Docker Swarm.

It shows information about Containers, Images and Networks, and, if running a Swarm cluster, it shows information about Nodes, Service, Stacks and the rest of Swarm constructs. It can be used with 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 provides, are available in dry with the same behaviour. A list of available commands and their keybindings 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.

dry keybinds

Global

KeybindingDescription
%filter list
F1sort list
F5refresh list
F7toggle showing Docker daemon information
F8show docker disk usage
F9show last 10 docker events
F10show docker info
1show container list
2show image list
3show network list
4show volumes list
5show node list (on Swarm mode)
6show service list (on Swarm mode)
7show stacks list (on Swarm mode)
ArrowUpmove the cursor one line up
ArrowDownmove the cursor one line down
gmove the cursor to the top
Gmove the cursor to the bottom
qquit dry

Container commands

KeybindingDescription
Entershow container command menu
F2toggle on/off showing stopped containers
iinspect
lcontainer logs
eremove
sstats
Ctrl+eremove all stopped containers
Ctrl+kkill
Ctrl+lcontainer logs with Docker timestamps
Ctrl+rstart/restart
Ctrl+tstop

Image commands

KeybindingDescription
ihistory
rrun command in new container
Ctrl+dremove dangling images
Ctrl+eremove image
Ctrl+fremove image (force)
Ctrl+uremove unused images
Enterinspect

Network commands

KeybindingDescription
Ctrl+eremove network
Enterinspect

Volume commands

KeybindingDescription
Ctrl+aremove all volumes
Ctrl+eremove volume
Ctrl+fremove volume (force)
Ctrl+uremove unused volumes
Enterinspect

Service commands

KeybindingDescription
iinspect service
lservice logs
Ctrl+lservice logs with Docker timestamps
Ctrl+rremove service
Ctrl+sscale service
Ctrl+uupdate service
Entershow service tasks

Moving around buffers

KeybindingDescription
ArrowUpmove the cursor one line up
ArrowDownmove the cursor one line down
gmove the cursor to the beginning of the buffer
Gmove the cursor to the end of the buffer
nafter search, move forwards to the next search hit
Nafter search, move backwards to the previous search hit
ssearch
pg upmove the cursor "screen size" lines up
pg downmove the cursor "screen size" lines down

Installation

The easiest way to install the latest binaries for Linux and Mac is to run this in a shell:

curl -sSf https://moncho.github.io/dry/dryup.sh | sudo shsudo chmod 755 /usr/local/bin/dry

Binaries

If you dont like to curl | sh, binaries are provided.

darwin 386 / amd64freebsd 386 / amd64linux 386 / amd64windows 386 / amd64

Mac OS X / Homebrew

If you're on OS X and want to use homebrew:

brew tap moncho/drybrew install dry

Docker

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST=$DOCKER_HOST moncho/dry

Arch Linux

yaourt -S dry-bin

Usage

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.

dry -p launches dry with pprof package active.

Contributing

All contributions are welcome.

Fork the project.Make changes on a topic branch.Pull request.

Copyright and license

Code released under the MIT license. See LICENSE for the full license text.

Credits

Built on top of:

tcelltermuiDockerDocker CLI

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:从头开始学Redisson--------话题(订阅分发)
下一篇:从头开始学Redisson--------布隆过滤器
相关文章

 发表评论

暂时没有评论,来抢沙发吧~