Skip to content

Instantly share code, notes, and snippets.

@hjue
Created March 14, 2018 06:06
Show Gist options
  • Save hjue/465be362ae2268601a579e155fb8970c to your computer and use it in GitHub Desktop.
Save hjue/465be362ae2268601a579e155fb8970c to your computer and use it in GitHub Desktop.
push k8s images
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