cat /etc/rancher/k3s/registries.yaml
mirrors:
docker.io:
endpoint:
- "https://docker.moghn.eu.org/"
- "https://registry.cn-hangzhou.aliyuncs.com/"
crictl info |grep -A 5 regis
"registry": {
"configPath": "/var/lib/rancher/k3s/agent/etc/containerd/certs.d",
"mirrors": null,
"configs": null,
"auths": null,
"headers": null
--
"sandboxImage": "registry.cn-hangzhou.aliyuncs.com/rancher/mirrored-pause:3.6",
"statsCollectPeriod": 10,
"systemdCgroup": false,
"enableTLSStreaming": false,
"x509KeyPairStreaming": {
"tlsCertFile": "",
cat /var/lib/rancher/k3s/agent/etc/containerd/certs.d/docker.io/hosts.toml
# File generated by k3s. DO NOT EDIT.
server = "https://registry-1.docker.io/v2"
capabilities = ["pull", "resolve", "push"]
[host]
[host."https://docker.moghn.eu.org/v2"]
capabilities = ["pull", "resolve"]
[host."https://registry.cn-hangzhou.aliyuncs.com/v2"]
capabilities = ["pull", "resolve"]
预期结果:
实际结果:
附加上下文/日志:
日志
Failed to pull image "apache/hertzbeat-collector:v1.6.0": failed to pull and unpack image "docker.io/apache/hertzbeat-collector:v1.6.0": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/15/153dca8ae5a2b7466116bd04a34053b6485a43789cbea770f9514662fa50d41a/data?verify=1724296407-eCJGrPZQ%2BvMDW2aPlSiCXBNWKuo%3D": dial tcp 108.160.165.212:443: connect: connection timed out
Failed to pull image "apache/hertzbeat-collector:v1.6.0": failed to pull and unpack image "docker.io/apache/hertzbeat-collector:v1.6.0": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/15/153dca8ae5a2b7466116bd04a34053b6485a43789cbea770f9514662fa50d41a/data?verify=1724296407-eCJGrPZQ%2BvMDW2aPlSiCXBNWKuo%3D": dial tcp 108.160.165.212:443: connect: connection timed out