Quiq/registry-ui

duplicate image of library namespace

qiukeren opened this issue · 4 comments

problem:

on perticually conditions ,

docker.registry.com/v2/_catalog

returns duplicate name:

{"repositories":["busybox","library/busybox","library/ubuntu","ubuntu"]}

then here adds the image twice to the list:

image

then causes:

image

Hello,

Any idea why your registry returns both "library/ubuntu","ubuntu"?

Hello,

Any idea why your registry returns both "library/ubuntu","ubuntu"?

here is the reproduce code:

# curl docker.homelabbity.com/v2/_catalog
get: {"repositories":["centos"]}
# docker tag centos docker.server.com/library/centos
# docker push docker.server.com/library/centos
# curl docker.homelabbity.com/v2/_catalog
get: {"repositories":["centos","library/centos"]}

the reigstry image is registry:2,2d4f4b5309b1,5 weeks ago.

I see, you have created "library/" namespace explicitly by docker tag/push and it interferes with the built-in one.

thanks for your reply , it is my mistake.