Home  >  Article  >  Operation and Maintenance  >  How to check image information in docker

How to check image information in docker

尚
Original
2020-03-25 11:32:067772browse

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:

How to check image information in docker

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

How to check image information in docker

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn