In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to install Dry tools in Linux, I believe most people do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
What is Dry?
Dry is a command-line tool for managing and monitoring Docker containers and images.
Dry can give information about containers, including corresponding images, container names, networks, commands running in containers, and container status; if running in Docker Swarm, the tool can also give various status information about the Swarm cluster.
Dry can connect to local or remote Docker daemons. If you connect to a local Docker, Docker hosts appear as unix://var/run/docker.sock.
If a remote Docker is connected, the Docker host appears as tcp://IP Address:Port Number or tcp://Host Name:Port Number.
Dry can provide metric output similar to docker ps, but with more content and color than docker ps.
Dry can also manually add an extra column of names compared to Docker to make memorization easier.
How to Install Dry in Linux
In Linux, the *** version of Dry can be installed via a simple shell script. Dry does not rely on external libraries. For most Docker commands, Dry provides similar style commands.
$ curl -sSf https://moncho.github.io/dry/dryup.sh | sudo sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 10 100 10 0 0 35 0 --:--:-- --:--:-- --:--:-- 35dryup: downloading dry binary######################################################################## 100.0%dryup: Moving dry binary to its destinationdryup: dry binary was copied to /usr/local/bin, now you should 'sudo chmod 755 /usr/local/bin/dry'
Change the file permissions to 755 using the following command:
$ sudo chmod 755 /usr/local/bin/dry
For Arch Linux users, you can install the tool from the AUR source using Packer or Yaourt package managers.
$ yaourt -S dry-bin or $ packer -S dry-bin
If you want to run dry in Docker containers, you can run the following command: Prerequisites are that Docker is confirmed to be installed in the operating system.
Recommended reading:
How to install Docker in Linux
How to Play Docker Images in Linux
How to Play Docker Containers in Linux
How to install and run applications in Docker containers
$ docker run -it -v /var/run/docker.sock:/var/run/docker.sock moncho/dry How to start and run Dry
Run the dry command on the console to launch the tool, and its default output is as follows:
$ dry
How to monitor Docker with Dry
You can turn on monitor mode by pressing the m key in the dry interface.
How to manage containers using Dry
To manage containers, click Enter on the selected container. Dry provides the following operations: view logs, view, kill, delete containers, stop, start, restart containers, view container status and mirror history, etc.
How to monitor container resource utilization
Users can view resource utilization for a given container using the Stats+Top option.
This operation needs to be done in the container management interface (click the Stats+Top option based on the previous step). Alternatively, press s to open the container resource utilization screen.
How to view disk usage for containers, mirrors, and local volumes
You can use the F8 key to view disk usage for containers, mirrors, and local volumes.
The interface explicitly gives the total number of containers, mirrors, and volumes, which are in use, and details of overall disk usage and recoverable space size.
How to view downloaded images
Press 2 to list all downloaded images.
How to view a list of networks
Press 3 to view all networks and gateways.
How to view all Docker containers
Press F2 to list all containers, both active and closed.
That's all for "How to Install Dry Tools in Linux", thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.