Hello,
We recently configured gitlab container registry on our gitlab on premises server, using an external docker registry on the same private network.
Everything is working well expect the fact that the tags are not displayed on gitlab UI and API.
It is if we use the docker API.
docker images registry-gitlab.toto.titi/test/traefik
REPOSITORY TAG IMAGE ID CREATED SIZE
registry-gitlab.toto.titi/test/traefik latest ddb0268e5b5f 14 months ago 92.4MB
the ip address of the remote registry is 192.168.0.10
Here is our configuration in /etc/gitlab/gitlab.rb :
registry_external_url 'https://registry-gitlab.toto.titi'
registry_nginx['ssl_certificate'] = <PATH TO SSL CERT>
registry_nginx['ssl_certificate_key'] = <PATH TO SSL KEY>
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_api_url'] = "http://192.168.0.10:5000"
gitlab_rails['registry_issuer'] = "gitlab-issuer"
gitlab_rails['registry_host'] = "registry-gitlab.toto.titi"
Here is the external registry configuration :
version: 0.1
storage:
filesystem:
rootdirectory: /var/lib/registry
delete:
enabled: true
http:
addr: 0.0.0.0:5000
auth:
token:
realm: https://gitlab.titi.toto/jwt/auth
service: container_registry
issuer: gitlab-issuer
rootcertbundle: <PATH TO SSL CERT>
We found some clues here : Container Registry - Images tags doesn't appears gitlab Ui and gitlab API (#277472) · Issues · GitLab.org / GitLab · GitLab
But we are unable to apply the requested configuration (replacing ‘0.0.0.0’ by ‘localhost’), as the registry is not on the same server as our gitlab instance.
We have been unable to find any similar case in gitlab bug/issues.
Does anyone have any idea of what can be the problem ?
Thank you very much.