https://rancher.com/ logo
Title
c

crooked-cat-21365

02/07/2023, 1:46 PM
Hi folks, I found https://docs.rke2.io/install/containerd_registry_configuration giving a few examples, but where can I find the reference documentation for /etc/rancher/rke2/registries.yaml ?
c

creamy-pencil-82913

02/07/2023, 5:25 PM
That's it right there. What else are you looking for?
c

crooked-cat-21365

02/08/2023, 8:34 AM
A short description of the elements in the yaml file. endpoint seems to be a table. What happens, if I add several hosts here? How do I set up a proxy for all anonymous container registries without hard wiring their names in registries.yaml? How comes that "docker.io" seems to match "registry-1.docker.io"? Etc.
c

creamy-pencil-82913

02/08/2023, 4:20 PM
Endpoint is a list, yes. If you add multiple, they are tried in order. You cannot. That is how Docker decided to set things up. Since they were the first registry ever to exist, some things are odd about it.
Everything except for the rewrite support is just a containerd feature, not specific to rke2.
A short description of the elements in the yaml file
That is on that page, if you scroll down a bit. Each section is described in great detail - mirrors, rewrites, configs, and so on