Docker Registry: pushed container undetected by Gitlab
Hello,
- My Gitlab version: 8.10.4
- Operating system: Debian Jessie
In order to configure a Docker Registry with Gitlab, I added to /etc/gitlab/gitlab.rb (omnibus install):
registry_external_url 'https://docker-registry.gl.org'
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = 'docker-registry.gl.org'
gitlab_rails['registry_api_url'] = 'http://localhost:5005'
registry['enable'] = true
(my Docker registry container "registry:2" is reachable from localhost:5005, for your information)
I pushed successfully a Docker image:
$ docker login docker-registry.gl.org
Username: asher256@gl.org
Password: *******
Login Succeeded
$ docker pull debian:jessie
$ docker tag debian:jessie docker-registry.gl.org/group/test
$ docker push docker-registry.gl.org/group/test
The push refers to a repository [docker-registry.gl.org/group/test]
2f71b45e4e25: Pushed
digest: sha256:951be409539ec8a509cf84bc374ca6f48124933a7874a2bd1695166e18e50f28 size: 529
Even though the Docker image was pushed successfully, I get this message when I open the project's container registry page https://git.gl.org/group/test/container_registry :
No images in Container Registry for this project.
It looks like Gitlab did not detect the Docker image I pushed.
Thank you.