With docker I would run docker login
, but how do you do similar with ctr
/containerd
?
We need to login due to hitting rate limits:
ctr: failed to copy: httpReaderSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/[...]: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
Following the containerd docs with /etc/containerd/config.toml
:
version = 2
[plugins."io.containerd.grpc.v1.cri".registry.configs."docker.io".auth]
username = "myusername"
password = "mypassword"
doesn't seem to work.
Yeah, me too and I don't understand why. So, I edited my config like as guide: https://docs.d2iq.com/dkp/kommander/1.4/operations/manage-docker-hub-rate-limits/
Like as you can see, original code in document
If change to this (full domain), it works
Restart containerd and check.
Testing, write bash script
My result, avaiable 198/200