wide-airline-10718
05/29/2025, 5:06 PM/etc/rancher/k3s/registries.yaml
file:
configs:
"registry-1.docker.io":
auth:
username: my_user
password: my_token
This results in config.toml
having the following:
[plugins.'io.containerd.cri.v1.images'.registry.configs.'registry-1.docker.io'.auth]
username = "my_user"
password = "my_token"
The thing is that the configs
property is deprecated, and will be removed in future releases of containerd:
# ctr c ls
WARN[0000] DEPRECATION: The `configs` property of `[plugins."io.containerd.grpc.v1.cri".registry]` is deprecated since containerd v1.5 and will be removed in containerd v2.1.Use `config_path` instead.
I found many tickets that refer to using config_path
which were resolved but I can see that the code still sets user/pass authentication in the configs property instead of the hosts.toml
of the registry (where tls auth config is included).
Before creating an issue, I was wondering if this is the right way to authenticate with docker.io using k3s?creamy-pencil-82913
05/29/2025, 6:21 PMcreamy-pencil-82913
05/29/2025, 6:22 PMwide-airline-10718
05/29/2025, 6:23 PMcreamy-pencil-82913
05/29/2025, 6:24 PMcreamy-pencil-82913
05/29/2025, 6:24 PMcreamy-pencil-82913
05/29/2025, 6:24 PMwide-airline-10718
05/29/2025, 6:25 PMcreamy-pencil-82913
05/29/2025, 6:25 PMcreamy-pencil-82913
05/29/2025, 6:26 PM