标签:container ima -- rmi class string done name lan
vim
image.sh
#!/bin/bash
url=registry.cn-hangzhou.aliyuncs.com/google_containers
version=v1.14.2
images=(`kubeadm config images list --kubernetes-version=$version|awk -F ‘/‘ ‘{print $2}‘`)
for imagename in ${images[@]} ; do
docker pull $url/$imagename
docker tag $url/$imagename k8s.gcr.io/$imagename
docker rmi -f $url/$imagename
done
chmod u+x image.sh
./image.sh
docker images
标签:container ima -- rmi class string done name lan
原文地址:https://www.cnblogs.com/Leaders543/p/12652527.html