docker-registry-ui icon indicating copy to clipboard operation
docker-registry-ui copied to clipboard

Provide full list of tags with missing manifests instead of showing error or "?" next to them

Open yanickgirouard opened this issue 5 years ago • 1 comments

When using docker-distribution on Red Hat Enterprise Linux as a private registry, the deletion of manifests associated with a tag leaves a dangling tag directory in the "_manifests/tags/" directory. this causes the registry to return the tag when queried, but will return a "Manifest unknown" error if you try to do anything with it.

Because of this, after deleting multiple tags of an image through the Joxit UI, you'll get a "Manifest for IMAGE:TAG not found" error in red and "?" characters where its info should be. All you see is the name of the tag. This is not a Joxit bug per say, but there's something Joxit could do to help.

Instead of listing the broken tags in the UI, sometimes over multiple pages, there could be a separate list (perhaps with a clear WARNING icon somewhere), showing all the broken tags by name so we can more easily have the dangling directories manually deleted by a sysadmin on the docker-distribution server (i.e. rm -rf /var/lib/registry/docker/registry/v2/repositories/${IMAGE}/_manifests/tags/${TAG}), which will instantly fix the issue.

yanickgirouard avatar Mar 18 '20 13:03 yanickgirouard

Hi, thank you for your issue. I'm glad that you are using this project :smile:

I don't know if I can remove dangling tags because this will break the pagination... :thinking: I can add the tag without the digest or with a message...

Joxit avatar Mar 19 '20 17:03 Joxit