Skip to content

Private Registry with Kubernetes Provider #1065

Answered by pew
pew asked this question in Q&A
Discussion options

You must be logged in to vote

If k8s is using a docker config.json file as a secret, this seems to work in combination with Diun:

for the container part:

volumeMounts:
  - mountPath: /root/.docker/
    name: docker-config
    readOnly: true

referencing the volume:

volumes:
  - name: docker-config
    secret:
      secretName: regcred
      items:
      - key: .dockerconfigjson
        path: config.json

this will mount the existing .dockerconfigjson secret to the diun container at /root/.docker/config.json

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant