Demystify GitLab and Docker Registry
Hi,
Working with a GitLab from sources install, installation of a Docker Registry can be a little be tricky given the documentation does not detail it:
Installations from source:
- You will have to install Registry by yourself.
There are many unfamiliar settings and mecanisms to understand for setting up even a basic Docker Registry working with GitLab, especially the communication between GitLab and the Registry, the role of each one and the RSA Key Pair needed to be generated and shared between the two for proper token signing and verifying. The latter point is also not covered by the GitLab administration document and not by the Docker documentation it refers to. It should be covered by the GitLab documentation because GitLab acts as the authorization service and is the the sole party signing the tokens it issues.
This leads to a few misunderstanding on the setup that I did share with the original author too at setup time. Plus it's somehow complicated to understand whether it's GitLab fault or Docker fault when things aren't working as expected.
This topic could be an interesting blog post, if you are interested with the idea and its relevancy, I could work on it from an actual blog post of mine in addition to a PR for improving the doc.