This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9924|Reply: 2

Two tools are recommended for analyzing the Docker image layer

[Copy link]
Posted on 9/9/2021 12:34:07 PM | | | |
dive

A tool for exploring Docker images, layer contents, and discovering ways to reduce the size of Docker/OCI images.

GitHub address:The hyperlink login is visible.

I installed it on a CentOS 7 system with the following command:



dive using command parameters:

Valid source options:

docker: Docker 引擎(默认选项)
docker-archive: The Docker Tar archive from the disk
podman: Podman 引擎(仅适用于 linux)

Take an example image of asp.net core

Address:The hyperlink login is visible.

The command is as follows:


dive first checks for the presence of the image from the local cache, and if not, pulls it from the image repository.




Operation key

Keybindingdescription
Ctrl + Coutlet
TabSwitch between layer and file tree view
Ctrl + FFilter files
PageUpScroll up a page
PageDownScroll down a page
Ctrl + ALayer view: View aggregated image modifications
Ctrl + LLayer view: View the current layer modifications
SpaceFile Tree View: Collapse/expand the directory
Ctrl + SpaceFile Tree View: Collapse/expand all directories
Ctrl + AFile Tree View: Show/hide added files
Ctrl + RFile Tree View: Show/hide deleted files
Ctrl + MFile Tree View: Show/hide modified files
Ctrl + UFile Tree View: Show/hide unmodified files
Ctrl + BFile Tree View: Show/hide file properties
PageUpFile tree view: Scroll up the page
PageDownFile tree view: Scroll down the page

diving

An online analysis Docker image website developed based on Dive, which can view the analysis image through web visualization operations.

GitHub address:The hyperlink login is visible.

Using docker to build, the command is as follows:


The renderings are as follows:



Online Experience AddressThe hyperlink login is visible.



(End)





Previous:[Practice] Troubleshoot the problem of running a Java application on a Linux server and hanging up
Next:.NET Core backs up data to Amazon S3 Glacier storage
 Landlord| Posted on 9/9/2021 12:36:04 PM |
Linux Overlay file system in Docker
https://www.itsvse.com/thread-10061-1-1.html

Docker repository (1) Build a private repository based on Harbor
https://www.itsvse.com/thread-9474-1-1.html

Docker Hub sets up domestic image acceleration
https://www.itsvse.com/thread-9738-1-1.html
 Landlord| Posted on 5/17/2025 2:30:34 PM |
diving-rs replaces diving with the address:https://github.com/vicanso/diving-rs
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com