vasanthan
vasanthan

Reputation: 35

change the registry in the docker https://index.docker.io/v1/ to V2

Installed Docker version 19.03.12 on ubuntu . using the command docker info

it is showing registry as like below

Registry:https://index.docker.io/v1

Can anyone suggest a method to change the registry to v2 (https://index.docker.io/v2)

There is an issue to pull the image from the docker artifactory repository v2

Upvotes: 2

Views: 6238

Answers (1)

Muhammed Kashif
Muhammed Kashif

Reputation: 1511

Vasanthan, if you have just installed docker and all the docker images will be resolved through docker hub, you can set up the same environment in Artifactory by using the default docker remote repository as below, Docker remote repository hitting the docker hub

As you can observe that it is by default v2 and hitting the "https://registry-1.docker.io/" which hits the docker hub. There is no need to use the "https://index.docker.io/v2 " instead use the "https://registry-1.docker.io/". I hope this helps.

Upvotes: 2

Related Questions