mkuchin / docker-registry-web

Web UI for private docker registry v2
https://hub.docker.com/r/hyper/docker-registry-web/
GNU General Public License v2.0
535 stars 133 forks source link

use gitlab registry #95

Open glensc opened 6 years ago

glensc commented 6 years ago

GitLab 8.8 has bundled Docker Container Registry: https://docs.gitlab.com/ce/user/project/container_registry.html

it's registry configuration is like (/var/opt/gitlab/registry/config.yml:

version: 0.1
...
auth:
  token:
    realm: https://gitlab.example.net/jwt/auth
    service: container_registry
    issuer: omnibus-gitlab-issuer
    rootcertbundle: /var/opt/gitlab/registry/gitlab-registry.crt

how to make api calls to such registry server using token auth?

as i understand the token issuer is gitlab (not docker-registry-web), so docker-registry-web needs to obtain token from https://gitlab.example.net/jwt/auth and use token obtained from there against registry server.