Skip to content

Instantly share code, notes, and snippets.

@lawrenceching
Created March 16, 2020 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawrenceching/3723e411b8580933acf0da84f6467d39 to your computer and use it in GitHub Desktop.
Save lawrenceching/3723e411b8580933acf0da84f6467d39 to your computer and use it in GitHub Desktop.
Pull Kubernetes images from Azure mirror registry and retag them
images=(
kube-apiserver:v1.17.4
kube-controller-manager:v1.17.4
kube-scheduler:v1.17.4
kube-proxy:v1.17.4
pause:3.1
etcd:3.4.3-0
coredns:1.6.5
)
for imageName in ${images[@]} ; do
docker pull gcr.azk8s.cn/google_containers/$imageName
docker tag gcr.azk8s.cn/google_containers/$imageName k8s.gcr.io/$imageName
docker rmi gcr.azk8s.cn/google_containers/$imageName
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment