k8s解决国内拉取镜像问题
友情提示:记得切换版本#!/bin/bashimages=(kube-apiserver:v1.15.1 kube-controller-manager:v1.15.1 kube-scheduler:v1.15.1 kube-proxy:v1.15.1 pause:3.1 etcd:3.3.15-0 )for imageName in ${images[@]} ; dodocker...
·
友情提示:记得切换版本
#!/bin/bash
images=(kube-apiserver:v1.15.1 kube-controller-manager:v1.15.1 kube-scheduler:v1.15.1 kube-proxy:v1.15.1 pause:3.1 etcd:3.3.15-0 )
for imageName in ${images[@]} ; do
docker pull mirrorgooglecontainers/$imageName
docker tag mirrorgooglecontainers/$imageName k8s.gcr.io/$imageName
docker rmi mirrorgooglecontainers/$imageName
done
docker pull coredns/coredns:1.6.1
docker tag coredns/coredns:1.6.1 k8s.gcr.io/coredns:1.6.1
docker rmi coredns/coredns:1.6.1
更多推荐
已为社区贡献3条内容
所有评论(0)