Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the three Docker graphical management tools that are very useful?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

3 super easy to use Docker graphical management tools are which, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can harvest.

Docker is a very popular container technology that is now widely used in various industries.

However, how to manage Docker containers is a problem, so today I introduce you to 3 Docker visualization tools, hoping to help you.

Portainer

Portainer is a Docker visualization tool that allows us to easily view and manage Docker containers on the web.

Project address: www.portainer.io/

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.

Project address: github.com/jesseduffield/lazydocker

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.

Docui

Docui is also an open source terminal Docker management tool, in the same form as Lazydocker, but also in the form of terminal UI.

Docui and Lazydocker both have a common advantage, that is, they support a large number of shortcut keys, which will be extremely convenient after proficiency.

Project address: github.com/skanehira/docui

Docui installation is also very simple.

#Install via source code $ git clone https://github.com/skanehira/docui.git $ cd docui/ $ GO111MODULE=on go install # macOS possibly install via Homebrew $ brew tap skanehira/docui $ brew install docui

summary

If you are a team user, Portainer will work better because it has access control.

Lazydocker and Docui are simple and flexible terminal gadgets, and if you don't need complex features, they might be better for you.

Docker has a lot of free and easy to use three-party client tools, the above are just some of them, which one is more suitable for you, but also need to try to understand the actual needs to choose the most suitable.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report