Home > Article > Operation and Maintenance > How to check image information in docker
How docker views image information:
images command lists images
Use the following two commands to list existing ones on this machine Mirror:
docker images
or:
docker image ls
As shown below:
Explain the fields marked in red above:
REPOSITORY: Which warehouse it comes from;
TAG: The tag information of the image, such as 5.7, latest indicates different version information;
IMAGE ID: The ID of the image, if you see If the two IDs are exactly the same, then in fact, they point to the same image, but the label names are different;
CREATED: the last update time of the image;
SIZE: the size of the image , excellent images are generally smaller in size, which is why I prefer to use the lightweight alpine version;
Use the inspect command to view image details
Through the docker inspect command, we can obtain the detailed information of the image, including the creator, digital summary of each layer, etc.
docker inspect docker.io/mysql:5.7
For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of How to check image information in docker. For more information, please follow other related articles on the PHP Chinese website!