Created
March 14, 2018 06:06
-
-
Save hjue/465be362ae2268601a579e155fb8970c to your computer and use it in GitHub Desktop.
push 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 tag gcr.io/google_containers/$imageName registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
docker push registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
docker rmi registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
done | |
imageName=flannel:v0.9.1-amd64 | |
docker tag quay.io/coreos/$imageName registry.cn-hangzhou.aliyuncs.com/gionee/$imageName | |
docker push registry.cn-hangzhou.aliyuncs.com/gionee/$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