Created
March 14, 2018 06:05
-
-
Save hjue/3d6deb27ffeeeb2c561115689ede4ab6 to your computer and use it in GitHub Desktop.
pull k8s images
This file contains hidden or 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-amd64:v1.9.3 | |
kube-scheduler-amd64:v1.9.3 | |
kube-controller-manager-amd64:v1.9.3 | |
kube-proxy-amd64:v1.9.3 | |
etcd-amd64:3.1.11 | |
pause-amd64:3.0 | |
k8s-dns-sidecar-amd64:1.14.7 | |
k8s-dns-kube-dns-amd64:1.14.7 | |
k8s-dns-dnsmasq-nanny-amd64:1.14.7 | |
) | |
for imageName in ${images[@]} ; do | |
docker pull registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
docker tag registry.cn-hangzhou.aliyuncs.com/gionee/$imageName gcr.io/google_containers/$imageName | |
docker rmi registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
done | |
imageName=flannel:v0.9.1-amd64 | |
docker pull registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
docker tag registry.cn-hangzhou.aliyuncs.com/gionee/$imageName quay.io/coreos/$imageName | |
docker rmi registry.cn-hangzhou.aliyuncs.com/gionee/$imageName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment