containerd配置国内源

在文件中添加:

# /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
endpoint = ["registry.aliyuncs.com/google_containers"]

docker配置国内源

在文件中添加

# /etc/docker/daemon.json
"registry-mirrors":["registry.aliyuncs.com/google_containers"]

重启生效

systemctl restart docker
systemctl restart containerd
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐