Introduce two super cool and practical docker management tools!

Time:2021-1-15

The popularity of docker technology must be felt by every internet it technician from time to time. Indeed, in recent years, the domestic demand for docker container technology has become increasingly strong!!

The average annual salary is more than 800000. What is docker? Why is it so hot?

Therefore, the management of docker container is becoming more and more important. So, today, brother migrant workers recommends two awesome, cool and practical tools.

1. Explore docker image, reduce image size!

Docker container image is a lightweight, independent executable package that contains all the software needed to run an application. What will be included in a docker image? This tool called dive is used to analyze and browse the contents of each layer of docker image.

By analyzing the docker image, we can find the possible duplicate files between different layers, and reduce the size of the docker image by removing them.

Dive is a free and open source tool written in go language. The dive tool is not only a docker image analysis tool, it can also help users build images.

Running screenshot

GitHub:

https://github.com/wagoodman/…

Latest version: v0.4.1

Installation instructions:

https://github.com/wagoodman/…

Download address:

https://github.com/wagoodman/…

reference material:

https://www.oschina.net/p/dive

2. Super cool docker terminal UI

Lazydocker, a simple terminal UI for docker and docker compose, has been developed by a developer. It’s only a few days, and now it has gained 2K + star.

Author: h4cd, source: open source China.

Introduce two super cool and practical docker management tools!

Introduce two super cool and practical docker management tools!

Introduce two super cool and practical docker management tools!

The author says that it is difficult to remember docker commands, and it is almost impossible to track containers in multiple terminal windows. Lazydocker is just to solve this problem. It can have all the information needed in a terminal window, and each common docker command can be bound with shortcut keys, and at the same time, it can add custom commands. All you have to do is click the keyboard or click the mouse as shown above.

Lazydocker is based on the gocui library. The environment needs Go 1.12 version, calling commands in the terminal, such as:

echo "alias ld='lazydocker'" >> ~/.zshrc

Introduce two super cool and practical docker management tools!

The specific characteristics of lazydocker are as follows:

  • View the state of docker or docker compose container environment in a full view
  • View the log of the container or service
  • Look at the ASCII chart of container metrics so you’re more like a developer
  • Customize chart to measure different indicators
  • Attach to container / service
  • Restart, delete and rebuild containers / services
  • View the ancestor layer of a given image
  • Pruning containers, mirrors, or volumes that take up disk space

Details
https://gitee.com/mirrors/laz…

Welcome to comment and correct. If you have any help, please click like + forward to share.

Welcome to the official account of the brother of migrant workers:The way of migrant workers’ Technology
Introduce two super cool and practical docker management tools!