I've set up my /etc/rancher/k3s/registries.yaml, how can I confirm it works without doing

k3s kubectl run c1 --image docker.io/perl:5.30
k3s kubectl logs --follow=true c1
sleep 1
k3s kubectl delete pod c1

Is there a more efficient way to test registry authentication for images than having to use k3s run?

1 Answer 1


The /etc/rancher/k3s/registries.yaml is read by k3s ctr and k3s crictl. You can validate it works properly with a command like this,

sudo k3s crictl pull     docker.io/alpine:3
sudo k3s ctr images pull docker.io/library/alpine:3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.