Created
March 16, 2020 15:38
-
-
Save lawrenceching/3723e411b8580933acf0da84f6467d39 to your computer and use it in GitHub Desktop.
Pull Kubernetes images from Azure mirror registry and retag them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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