BEFORE GIVING NEGATIVE FEEDBACK:
the requisites for a negative feedback are, quoting: "This question does not show any research effort; it is unclear or not useful".
I’ve been looking for the solution for the last two days. There is no code to show, it is such a rare (and almost new) case to be in this situation (self hosted gitlab and self hosted gitlab registry) and for this reason there is scarse documentation.
I’ve also tried to post the thread in webmasters but there is no gitlab tag (so there aren’t enough tags unless mistagging the thread).
I’ve posted this answer hoping in someone who already faced this.
And an answer could actually help other people, now or in the future.
my docker gitlab instance doesn’t show any container under group-name > project-name – Container Registry
Gitlab is properly configured, the gitlab registry is active, the runner is active, and I can complete a pipeline containing a deploy: meaning that my gitlab container registry actually contains containers for this particular project (I can also see the actual image pulled from my docker instance meaning that the images are there).
The page says:
If you are not already logged in, you need to authenticate to the Container Registry by using your GitLab username and password. If you have Two-Factor Authentication enabled, use a Personal Access Token instead of a password.
How am I supposed to login to show my containers in here?
2
Answers
I was able to solve the problem creating a certificate in docker host as reported here:
then assigned the
certs
folder to the two (gitlab and registry) containers.this certificate configuration allow gitlab and gitlab registry to sort of auto-login and talk to each other.
the
docker-compose.yml
file will finally look like this:SO MANY NOTES to use this
docker-compose.yml
file:That should follow the "Authenticate with the Container Registry ALL TIERS" documentation, which works for self-hosted GitLab instances too.
The message you are seeing is a general guide for accessing the Container Registry via the Docker CLI or similar tool, not through the GitLab web interface.
In the GitLab web interface, you should be able to see the list of Docker images stored in the project’s Container Registry without additional authentication, assuming you’re already logged in to GitLab and have the appropriate permissions for the project.