Skip to content

Instantly share code, notes, and snippets.

@hjue
Created March 14, 2018 07:39
Show Gist options
  • Save hjue/01e2a466c710d2f1c2d7e0795e8aef30 to your computer and use it in GitHub Desktop.
Save hjue/01e2a466c710d2f1c2d7e0795e8aef30 to your computer and use it in GitHub Desktop.
pull k8s image for node
images=(
kube-proxy-amd64:v1.9.3
pause-amd64:3.0
)
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