Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

310
Vistas
Setup private docker registry with anonymous pull access

I'd like to setup a docker registry that allows anonymous pulls but authenticates pushes.

My naive approach was to allow get requests. But that seems to break the login as the client only creates the credentials if the initial Get request to /v2/ yields a 401.

However also repository reads start with that so I cannot put this behind authentication either.

Basically it seems I'd have to distinguish between a ping before a pull and a ping before a login.

I'm also happy to setup token authentication. But that would probably run into the same conundrum.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Apparently the way to go is to set up token authentication.

Then you can return a valid token for the scope pull even if no Basic Authentication was given.

You can find an example code on https://github.com/cloudfleet/floating-dock/blob/master/app/controllers/api/v1/jwt_controller.rb and https://github.com/cloudfleet/floating-dock/blob/master/app/services/auth/container_registry_authentication_service.rb

It is an adapted version of GitLabs JWT implementation for the registry.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda