Docker hub is v1?

I know that docker registry has v1 and v2
The address of docker hub is docker.io/v1
So docker hub is using v1 method?

I couldn’t find the issue on GitHub where I commented and someone shared why v1 still exists, but if I remember correctly, v1 is for the docker search command since the search feature is not implemented in v2.

What do you mean by

?
The docker hub is hub.docker.com

i think i misunderstood the question
I know docker container manifest changed from v1 to v2

So I know that the address of the private registry is also

 http://127.0.0.1:5000/v2/...

However, the address of docker.io confirmed by docker info is

http://index.docker.io/v1

I wonder if this is just an address name or is it because it continues to use the old address or is it related to container v1?

In the quote of my previous comment you mentioned the “address of Docker Hub”. Now that I know you meant the registry url in the output of docker info, I understand you.

That URL is not the URL of the registry. Docker Hub is not the only registry that you can use with the docker cli, so the docker info does not need to return that. The registry host and port is part of the image tag and the logic of using docker.io (docker hub) in case the tag doesn’t container the registry is built into the cli. The docker search command however works only with Docker Hub using the v1 API. The URL that you saw in the output is the URL of the API for docker search.

It is known to be confusing. See the issue on GitHub:

https://github.com/docker/cli/issues/3793#issuecomment-1269051403 where thajeztah explains why that API version still exists.

They should probably change the output of docker info and they will probably do that sometime.

1 Like

Your answer completely cleared my doubts. you are so amazing thank you very much