In this article, we will need to learn how to view image information in Docker 1. The images command lists imagesUse the following two commands to list the existing images on the local machine: docker images or: docker image ls As shown in the following figure: Explain the fields marked in red above:
2. Use the tag command to add tags to the image Usually, in order to quickly find a certain image in subsequent work, we can use the For the As you can see, there is an additional The 3. Use the inspect command to view image details Through the docker inspect docker.io/mysql:5.7 docker inspect -f {{".Size"}} docker.io/mysql:5.7 4. Use the history command to view the image historyIn the previous section, we know that an image is composed of multiple layers. So, how do we know the specific content of each layer? The docker history docker.io/mysql:5.7 As you can see, the above information is too long. For the convenience of display, it is omitted later. If you want to see the specific information, you can add the docker history --no-trunc docker.io/mysql:5.7 V. ConclusionIn this article, we focused on how to view image information in Docker, as well as the functions of the tag command, inspect command, and history command. This is the end of this article about how to view image information on Docker. For more information about how to view image information on Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of the process of creating floor navigation effects with JavaScript
>>: What are the benefits of using B+ tree as index structure in MySQL?
<html> <head> <meta http-equiv=&quo...
Select the category selection. After testing, IE ...
Preface: The installation process will not be des...
1. Download MySQL 1.1 Download address https://do...
When the resolution of the login interface is par...
Introduction to Nginx Nginx is a high-performance...
Open the connection tool. I use MobaXterm_Persona...
1. Background of the incident: Because of work ne...
This article describes the definition and usage o...
Share a Shell script under Linux to monitor the m...
This tutorial shares the installation tutorial of...
Preface In database operations, in order to effec...
Preface Not long ago, I combined browser-sync+gul...
Table of contents Written in front 1. Ngixn image...
The EXPLAIN statement provides information about ...