Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda