containerd配置国内源
在文件中添加:
shell
# /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
endpoint = ["registry.aliyuncs.com/google_containers"]
docker配置国内源
在文件中添加
shell
# /etc/docker/daemon.json
"registry-mirrors":["registry.aliyuncs.com/google_containers"]
重启生效
shell
systemctl restart docker
systemctl restart containerd