Comparison of dry versus docker cli. is a terminal application to manage containers and images. It aims to be an alternative to the official Docker CLI when it is needed to repeatedly execute commands on existing containers and images, and also as a tool to monitor Docker containers from a terminal. You can think of Dry as htop for containers. Dry Docker Installation ## LINUX$ curl -sSf https://moncho.github.io/dry/dryup.sh | sudo sh$ sudo chmod 755 /usr/local/bin/dry ## MAC brew tap moncho/dry brew install dry Usage $ dry This will open up a prompt loaded with all the useful information about the docker daemon and the containers that are running. It can connect to local or remote docker host. In this example we are connected to local daemon ( . unix:///var/run/docker.sock) top: dry | bottom: docker ps This image shows a comparison between and . The dry experience is definitely much better than the default docker cli. docker ps dry monitor You can enter the monitor mode in dry by pressing key. This is equivalent to command. Let’s see how the monitoring compares between the two m docker stats top: dry | bottom: docker stats Both the provide similar metrics but again has more verbose and colored output. It also has an additional column which comes handy at times when you have many containers you are not a memory champion. tools dry NAME containers If you select a container from the main menu you get a list of operations that can be performed. ` dry: containers You can view logs, inspect, kill and do a bunch of other things to the container. The is a useful feature that shows the resource utilization and output of top from the container. Stats+Top dry: Stats + Top The docker cli flow would be to first fetch the container id from and then execute top interactively inside the container . docker ps docker exec -it <container_id> top images You can operate on images by pressing inside the main menu. 2 dry: images If you want to remove an image simply select it from the menu and press . For force removal you must use . Ctrl + E Ctrl + F help To get help on dry commands you can start and press key or visit their . dry H github page Dry may not add a lot of value for everyone but it is definitely some sugar on top of vanilla docker cli. I use this tool a lot and would recommend others to give it a try. ❤ If this post was helpful, please hit the little green heart!
Share Your Thoughts