As a description of the docker xxx command specifying an image, you can find two types of information on the web: repository name and image name.docker images
says REPOSITORY, so I wonder if the repository name is the official name. Do they have different meanings?
I think the image name is more intuitive because it specifies the image.
I am confused because the repository called apt-get
and the term Docker repository don't match in me.
The Docker registry appears to be closer to the repository image, such as apt-get
.I see articles that seem to confuse repositories and registry as well.
man docker-images
has the following statement, and is there any official awareness that it is causing confusion?
The title REPOSITORY for the first title may seeem confusing.
There was probably a similar question in the English version of stack overflow, but I hope I can get answers in Japanese because I can't interpret them with my English ability.
https://stackoverflow.com/questions/31115098/in-docker-what-is-the-difference-between-an-image-and-a-repository
Multiple images can be registered in the Docker repository and are separated by tags.
It seems to be distinguished in such a way that ...At a minimum, as long as you read the Docker Hub repository document, for example, this document contains
You can add multiple images to a repository, by adding a specific :<tag>
to it (for example docs/base:testing
.
(My translation) You can add multiple images to the repository by adding the appropriate :<tag>
(for example, docs/base:testing
).
It says
More complicatedly, the Docker image itself and the image name should be considered separately.
The reason is that each Docker image has a hash value with an ID.
As you can see by tagging v1
and latest
at the same time,
You can tag the same image with multiple different tags and have different names.
The registry is also a separate hierarchy and refers to a server-side Docker image distribution system (See also.
The REPOSITORY
column in docker images
is the repository name, and the tag name in the TAG
column is the image name.
In CentOS, the repository name is centos
, which has tags like 6
and 7
, i.e., centos:6
and centos:7
.
© 2024 OneMinuteCode. All rights reserved.