quay.io). When pulling these images in China, you may encounter network issues that cause slow pull speeds or even complete pull failures. A common workaround is to manually pull the images to a local environment and then Push them to a self-built image repository for manual synchronization. However, this process is extremely tedious and cannot cover all repositories or the latest image versions. Tencent Cloud TCR Enterprise Edition provides acceleration services for mainstream overseas image hosting platforms, effectively resolving deployment failures of open source applications caused by difficulties in pulling overseas images. This document describes how a TKE cluster can accelerate overseas image pulls through the TCR acceleration service.quay.io, you need to perform additional configuration. The configuration methods vary depending on whether the cluster runtime is Docker or Containerd.docker.io. When using overseas container images from registries other than docker.io, run the following command to change the image address domain by replacing quay.io with quay.tencentcloudcr.com. Example:docker pull quay.tencentcloudcr.com/k8scsi/csi-resizer:v0.5.0
vim /etc/docker/daemon.json
{"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]}
sudo systemctl restart docker
docker pull <image name> command to pull the image. If the image is pulled successfully, the configuration is successful.sudo docker info

sed -i '/\\[plugins\\.cri\\.registry\\.mirrors\\]/a\\[plugins.cri.registry.mirrors."quay.io"]\\endpoint = ["https://quay.tencentcloudcr.com"]' /etc/containerd/config.toml
/etc/containerd/config.toml) and add a configuration similar to the following:[plugins.cri.registry][plugins.cri.registry.mirrors][plugins.cri.registry.mirrors."quay.io"]endpoint = ["https://quay.tencentcloudcr.com"][plugins.cri.registry.mirrors."docker.io"]endpoint = ["https://mirror.ccs.tencentyun.com"][plugins.cri.registry.mirrors."nvcr.io"]endpoint = ["https://nvcr.tencentcloudcr.com"][plugins.cri.registry.mirrors."gcr.io"]endpoint = ["https://gcr.tencentcloudcr.com"][plugins.cri.registry.mirrors."k8s.gcr.io"]endpoint = ["https://k8s.tencentcloudcr.com"]
systemctl restart containerd
crictl pull quay.io/k8scsi/csi-resizer:v0.5.0
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan