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

215
Vistas
Kubernetes Pod mount /var/run/docker.sock and use imagePullSecrets

I assign an imagePullSecrets to my pod which allows the pod(?) to pull an image for a container from a private registry:

spec:
  imagePullSecrets:
  - name: dockerrep

This works great. Now in my pod spec I do pass the docker instance down with:

spec:
  volumes:
  - name: dockersock
    hostPath:
      path: /var/run/docker.sock

This way I can use docker inside my container! (I also mount it inside the container). But inside my container the docker instance is not allowed to pull using the imagePullSecrets provided to the pod itself.

Does anyone know if there is a direct way to do this? I thought that the docker instance (that's "passed down") into the container would automatically inherit the "docker login" from the imagePullSecret.

I know I can mount the pull secret manually again inside my container and perform a "docker login", just wanting to know if there is a direct way.

Thanks.

over 4 years ago · Santiago Trujillo
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