Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support containerd config_path for registry endpoints #1647

Closed
brandond opened this issue Apr 18, 2024 · 1 comment
Closed

Support containerd config_path for registry endpoints #1647

brandond opened this issue Apr 18, 2024 · 1 comment

Comments

@brandond
Copy link

brandond commented Apr 18, 2024

Containerd has preferred using docker-style certs.d via the CRI config_path values, since the 1.5 release.
Ref: https://github.com/containerd/containerd/blob/main/docs/hosts.md#cri

[plugins."io.containerd.grpc.v1.cri".registry]
  config_path = "/etc/containerd/certs.d"

stargz should support this, instead of requiring inline config under the plugins."io.containerd.snapshotter.v1.stargz".registry.mirrors table key

Current:

[plugins."io.containerd.snapshotter.v1.stargz".registry.mirrors."docker.io"]
  endpoint = ["https://registry.example.com/v2"]

Preferred:

[plugins."io.containerd.snapshotter.v1.stargz".registry]
  config_path = "/etc/containerd/certs.d"
@brandond
Copy link
Author

I guess this has actually been supported since #331, but I wasn't aware of that when I refactored the registry stuff in k3s-io/k3s#8973

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

No branches or pull requests

1 participant