Docker Community Forums

Share and learn in the Docker community.

Docker registry v1 vs v2


(Redseven) #1

Hi there,

How I can decide if docker tries to use v1 or v2 API for a registry? I try to use artifactory as a docker registry, but somehow I can’t connect. One of the many question about it if docker login uses the right version of the API. I have the latest docker so I assume it will use v2 by default, I’ve made a docker repository in artifactory with version v2, but when I try to login (docker login) I’ve got an error message what shows some “v1” in the URL… I am not sure if that is the issue, but anyway would be nice to know if docker tries to connect to a registry with v1 or v2.