Cannot see container images in Gitlab Container Registry

I configured GitLab (GitLab Enterprise Edition 12.9.3) on Ubuntu (on Virtual Box) including Container Registry (“insecure-registries” enabled for Docker).

When I try to retrieve the container images in GitLab, I’m getting “There are no container images stored for this project” (but when I use a curl-call, I see the images). I expect to see the container images.

Looking at the registry log, I see:

time=“2020-04-23T21:34:01.853271246Z” level=error msg=“response completed with error” err.code=“name unknown” err.detail=map[name:joachimaltmeyer/sanfrancisco2] err.message=“repository name not known to registry” go.version=go1.11.2“” http.request.method=GET http.request.remoteaddr=“” http.request.uri="/v2/joachimaltmeyer/sanfrancisco2/tags/list" http.request.useragent=“Faraday v0.15.4” http.response.contenttype=“application/json; charset=utf-8” http.response.duration=1.167887ms http.response.status=404 http.response.written=137“joachimaltmeyer/sanfrancisco2”

I’m not an Gitlab expert, but it seems to me that the branch is missing i.e. e.g. “/v2/joachimaltmeyer/sanfrancisco2/tags/list” is called instead of “/v2/joachimaltmeyer/sanfrancisco2/master/tags/list”

I found this issue which describes the problem from my perspective, but there is no solution described.

Did you ever find out anything more about this? I can pull the images from the registry but I cannot view them on the web ui for specific repositories. Some repositories do work and I’m struggling to find any differences in how they’re configured.

No more insights. I can also pull the images from the registry - but they are not visible on web ui.
If you will find a solution please let me know.

I did eventually solve it for me. In my case the registry was not respecting my config and it was storing everything in memory instead of on disk. It appears that at least in the default config that gitlab wants to be able to read some data from disk. I restarted, lost a bunch of images, but now everything works correctly with the registry config working via custom yaml file.

1 Like