Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

How to configure private registry credential in containerd.toml #835

Closed
dawidmalina opened this issue Jun 30, 2018 · 7 comments · Fixed by #838
Closed

How to configure private registry credential in containerd.toml #835

dawidmalina opened this issue Jun 30, 2018 · 7 comments · Fixed by #838
Assignees
Milestone

Comments

@dawidmalina
Copy link

Can you help me how to properly configure private registry credential inside containerd.toml?

@Random-Liu
Copy link
Member

If you are using containerd with Kubernetes, can you use ImagePullSecrets? https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

@dawidmalina
Copy link
Author

Ok but is this the only way. Can we configure this on host level?

@Random-Liu
Copy link
Member

Currently, there is no host level config for this.

What is your use case for host level credential config? If you want a default, we'd prefer you do it at the Kubernetes level. See how to configure all pods in a specific namespace to use a default ImagePullSecrets.

@dawidmalina
Copy link
Author

It would be nice to have drop in replacement for existing setup based on docker-ce where i don't use ImagePullSecrets as all configuration is done by configuration management tools. So i would like to have unchanged manifests and be able to switch from docker-ce to containerd.

@Random-Liu
Copy link
Member

Random-Liu commented Jul 6, 2018

@dawidmalina Hm, make sense. Let me look into this. We should be able to add a config for this.

I'll try to make it in containerd 1.2

@Random-Liu Random-Liu self-assigned this Jul 6, 2018
@Random-Liu Random-Liu added this to the v1.11 milestone Jul 6, 2018
@Random-Liu
Copy link
Member

Random-Liu commented Jul 9, 2018

@dawidmalina Does this meet your requirement? #838

Something like:

[plugins.cri.registry.auths]
  [plugins.cri.registry.auths."https://gcr.io"]
    username = ""
    password = ""
    auth = ""
    identitytoken = ""

@dawidmalina
Copy link
Author

Yes. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants