Docker is a very popular container technology, which is now widely used in all walks of life.
Portal is a docker visual management tool, which allows us to easily view and manage docker containers in web pages.
To use the container, it is easy to run the following two commands. These commands create a volume dedicated to the container, and then create and run the container 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. When running for the first time, you need to set an account, and then select the docker host to manage.
Select the host to manage
After that, you can see the docker containers running on the local machine. Click them to manage the containers. The entries on the left can manage volumes, create containers, View host information, and so on. Basically, all the functions are available. This is also a tool I recommend.
Compared with portal, it may not be so professional, but it may be easier for developers to use. Because most developers use the command line to run docker, lazydocker can be used occasionally when graphical viewing is required.
Official website demo
Installing lazydocker is also very simple. 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 very useful and ready to use it frequently, you can also make it an abbreviation and add it to the shell configuration file, so that it can be turned into a simple command.
For example, if I use Zsh, add the following to the. Zshrc file. In the future, 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’
Then you can view the docker container, image and volume information in the terminal.
Lazydocker supports keyboard operation and mouse click. You can view the corresponding information directly with mouse click.
It should be noted that if the graphics display of lazydocker on your terminal is messy, don’t worry, it’s just the problem of font display. Just reset the terminal font.
Docui is also an open source terminal docker management tool. Like lazydocker, it is also the form of terminal UI.
Docui and lazydocker have a common advantage, that is, they support a large number of shortcut keys, which will be extremely convenient after proficiency.
Docui installation is also very simple.
Install $git clone through the source code https://github.com/skanehira/docui.git $ cd docui/$ GO111MODULE=on go install
MacOS may install $brew tap skanehira / docui through homebrew $brew install docui
If you are a team, portal will be more suitable because it has access control.
Lazydocker and docui are simple and flexible terminal gadgets. If you don’t need complex functions, they may be more suitable for you.
Docker has many free and easy-to-use third-party client tools. The above is just some of them. You need to try which one is more suitable for you. After understanding, you can choose the most suitable one according to the actual needs.
Pay attention to the ‘little god’ to bring you different technical dry goods every day