Docker is a very popular container technology that is now widely used in all walks of life.

However, how to manage the Docker container is a problem, so today I would like to introduce three Docker visualization tools to you, hoping to help you.

Portainer

Portainer is a visual Docker management tool that allows you to easily view and manage Docker containers in web pages.

Project Address:https://www.portainer.io/

To use the Portainer is as simple as running the following two commands. These commands create a portainer-specific volume, then create containers on ports 8000 and 9000 and run them.

$ 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 the account and then select the Docker host to manage.



Set up account

Select the host to manage

After that, you can see the Docker containers running on the machine, and click on them to manage the containers. The entries on the left can manage volumes, create containers, view host information, and so on. It’s basically all there is to it, and it’s a tool I recommend.

LazyDocker

LazyDocker is a terminal based visual query tool that supports keyboard operation and mouse click.

It may not be as professional as a Portainer, but it’s probably much more useful for developers. Since most developers use the command line to run Docker, LazyDocker is a tool you can use when you occasionally need to view it graphically.

Project Address:https://github.com/jesseduffi…

Installing LazyDocker is also very simple. 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 you’re ready to use it more often, you can turn it into a simple command by adding it as an abbreviation to your Shell configuration file.

For example, if I use ZSH, add the following to the.zshrc file. You can then call LazyDocker directly from the LZD.

alias lzd=’docker run –rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/.config/lazydocker:/.config/jesseduffield/lazydocker lazyteam/lazydocker’

You can then view the Docker container, image, and volume information in the terminal. LazyDocker supports keyboard operation and mouse click, you can directly click with the mouse to view the corresponding information.

Note that if your terminal LazyDocker’s graphics display is messy, don’t worry, it’s just a font display problem. Resetting the terminal font can solve this problem.

DocUI is also an open source terminal Docker management tool, in the same form as LazyDocker, which is also the form of terminal UI.

DocUI and LazyDocker both have a common advantage, that is, they support a large number of shortcuts, which will be extremely convenient after proficiency.

Project Address:https://github.com/skanehira/…

DocUI installation is also simple.

Through the source code installation CD $git clone https://github.com/skanehira/docui.git$docui / $GO111MODULE = on the go install

$brew tap skanehira/docui$brew install docui$brew install docui

If you’re using it as a team, Portainer is a good fit because it has access control.

Both LazyDocker and DocUI are simple and flexible terminal widgets, and if you don’t need complex features, they might be better for you. Docker has many easy-to-use third-party client tools for free, and the above is just some of them. You still need to try out the one that is more suitable for you and choose the most suitable one according to your actual needs.

Reference 1. https://www.google.com 2. https://www.toutiao.com/i6780… 3.https://mp.weixin.qq.com/s/sb…

Pay attention to ‘little god’ to bring you a different technical dry goods every day