crictl mirror
#8686
Replies: 2 comments 2 replies
-
https://github.com/containerd/containerd/blob/main/docs/hosts.md |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thought problem is on the server = "https://registry.k8s.io"
[host."https://registry.cn-hangzhou.aliyuncs.com/v2/google_containers"]
capabilities = ["pull", "resolve"]
skip_verify = true
override_path = true >>> ctr images pull --hosts-dir "/etc/containerd/certs.d" registry.k8s.io/kube-controller-manager:v1.28.1
registry.k8s.io/kube-controller-manager:v1.28.1: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:f6838231cb74662af759da9630b4dd0745ff83893914e3f53037846448321684: done |++++++++++++++++++++++++++++++++++++++|
...
layer-sha256:5627a970d25e752d971a501ec7e35d0d6fdcd4a3ce9e958715a686853024794a: exists |++++++++++++++++++++++++++++++++++++++|
elapsed: 4.3 s total: 30.2 M (7.0 MiB/s)
unpacking linux/amd64 sha256:f6838231cb74662af759da9630b4dd0745ff83893914e3f53037846448321684...
done: 581.049993ms However I still got problem with Note that tag has changed, so append this may not help. [host."https://registry-1.docker.io"]
capabilities = ["pull", "resolve"] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically I adjusted containerd's mirror setting, and mirror on "registry.k8s.io" does not work
environment: CentOS7.9
Here's what I tried:
Install containerd
export containerd config, and add mirror setting:
add the following lines in corresponding location
reload containerd
then install k8s (basically I did this for the dependency crictl)
adjust crictl setting to containerd
then I tried pull image from the mirror site, it works:
but when I try the
registry.k8s.io
, it stucksthen I tried
systemctl status -l containerd
, it showed mehttp.StatusNotFound
I thought if I can pull image from
registry.aliyuncs.com/google_containers/pause:3.9
, the mirror site should work, but it's not.Why?
Why is this happening?
Is it going for
registry.aliyuncs.com/pause:3.9
and thus caused the StatusNotFound?How can I configure it then?
Beta Was this translation helpful? Give feedback.
All reactions