In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what Docker visualization tools have". In daily operation, I believe many people have doubts about what problems Docker visualization tools have. Xiaobian consulted all kinds of materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "what Docker visualization tools have"! Next, please follow the small series to learn together!
Portainer
Portainer is a Docker visualization tool that allows us to easily view and manage Docker containers on the web.
To use Portainer, simply run the following two commands: These commands create a Portainer-specific volume, and then create and run containers on ports 8000 and 9000.
$ docker volume create portainer_data$ docker run --name portainer -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Then open the corresponding address in the browser and you will find that it runs successfully. The first time you run it, you need to set up an account and select the Docker host you want to manage.
configure an account
Select hosts to manage
After that, you can see Docker containers running on the local machine. Click on them to manage the containers. The entries on the left allow you to manage volumes, create containers, view host information, and so on. Basically, all the functions are available, and this is also a tool I recommend.
LazyDocker
LazyDocker is a terminal-based visual query tool that supports keyboard operations and mouse clicks. It may not be as professional as Portainer, but it may be easier for developers to use. Because most developers run Docker from the command line, LazyDocker is a tool that can be used occasionally for graphical viewing.
Official website demo
Installing LazyDocker is also very easy, just run the following command:
docker run --rm -it -v \/var/run/docker.sock:/var/run/docker.sock \-v ~/.config/lazydocker:/.config/jesseduffield/lazydocker \lazyteam/lazydocker
Of course, if you find LazyDocker useful and plan to use it frequently, you can also make it abbreviated and add it to the shell configuration file, so that it can be turned into a simple command. For example, if I am using zsh, add the following to the.zshrc file. Later you can call LazyDocker directly with lzd.
alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/.config/lazydocker:/.config/jesseduffield/lazydocker lazyteam/lazydocker'
Docker containers, images and volumes can then be viewed in the terminal. LazyDocker supports keyboard operation and mouse click. You can view the corresponding information directly with mouse click.
Note that if your terminal LazyDocker graphics display is messy, don't worry, it's just a display font problem. Reset the terminal font can be solved.
At this point, the study of "What are Docker visualization tools" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.