Tuesday, May 1, 2018

Dry – An Interactive CLI Manager For Docker Containers

Docker is a software that allows operating-system-level virtualization also known as containerization.
It uses the resource isolation features of the Linux kernel such as
cgroups and kernel namespaces, and others to allows independent
containers to run within a single Linux instance.
Docker provides a way to run applications securely isolated in a container, packaged with all its dependencies and libraries.

What Is Dry

Dry is a command line utility to manage & monitor Docker containers and images.
It shows information about Containers, Images, Name of the
containers, Networks, Running commands in the containers, and status,
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. Docker host shows unix:///var/run/docker.sock if the local Docker connected.
Docker host shows tcp://IP Address:Port Number or tcp://Host Name:Port Number if the remote Docker connected.

It could provide you the similar output metrics like docker ps but it has more verbose and colored output than “docker ps”.
It also has an additional NAME column which comes handy at times when you have many containers you are not a memory champion.

How To Launch & Use Dry

Simply run the dry command from your terminal to launch the utility. The default output for dry is similar to below.

$ dry

How To Monitor Docker Using Dry

You can open the monitor mode in dry by pressing m key.

How To Manage Container Using Dry

To monitor any containers, just hit Enter on that. Dry
allows you to perform activity such as logs, inspect, kill, remove
container, stop, start, restart, stats, and image history.

How To Monitor Container Resource Utilization

Dry allows users to monitor particular container resource utilization using Stats+Top option.
We can achieve this by navigating to container management page (Follow the above steps and hit the Stats+Top option). Alternatively we can press s key to open container resource utilization page.

How To Check Container, Image, & Local Volume Disk Usage

We can check disk usage of containers, images, and local volumes using F8 key.
This will clearly display the total number of containers, images, and
volumes, and how many are active, and total disk usage and reclaimable
size details.