友情提示:记得切换版本

#!/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

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐