k3s ctr
launches the contianerd CLI, and k3s crictl
is the CRI cli. I'm told you configure k3s authentication to the image registries using /etc/rancher/k3s/registries.yaml
. Does this yaml file configure containerd, and CRI such that these commands no longer require --creds
?
k3s crictl pull --creds "evancarroll:$TOKEN" docker.io/alpine:3
k3s ctr images pull --creds "evancarroll:$TOKEN" docker.io/library/alpine:3
And can just be
k3s crictl pull docker.io/alpine:3
k3s ctr images pull docker.io/library/alpine:3