kubernets 镜像导入导出

A 机器:

ARCH=amd64
docker pull gcr.io/google_containers/hyperkube-${ARCH}:v1.8.3                     
docker pull gcr.io/google_containers/kube-apiserver-${ARCH}:v1.8.3                
docker pull gcr.io/google_containers/kube-controller-manager-${ARCH}:v1.8.3    
docker pull gcr.io/google_containers/kube-scheduler-${ARCH}:v1.8.3    
docker pull gcr.io/google_containers/kube-proxy-${ARCH}:v1.8.3    
docker pull gcr.io/google_containers/k8s-dns-sidecar-${ARCH}:1.14.4    
docker pull gcr.io/google_containers/k8s-dns-kube-dns-${ARCH}:1.14.4    
docker pull gcr.io/google_containers/k8s-dns-dnsmasq-nanny-${ARCH}:1.14.4    
docker pull gcr.io/google_containers/etcd-${ARCH}:3.0.17    
docker pull gcr.io/google_containers/kube-discovery-${ARCH}:1.0       
docker pull gcr.io/google_containers/etcd-${ARCH}:3.0.4     
docker pull gcr.io/google_containers/pause-${ARCH}:3.0 
docker save `docker images -aq` > images.tar
tar -czvf images.tar.gz ./images.tar                  
rm -rf ./images.tar                   

B 机器:

tar -xzvf images.tar.gz
rm -rf images.tar.gz
docker load < images.tar
ARCH=amd64
docker tag 75f8fab20be8 gcr.io/google_containers/hyperkube-${ARCH}:v1.8.3                     
docker tag cb809b44649a gcr.io/google_containers/kube-apiserver-${ARCH}:v1.8.3                
docker tag daf30b917b69 gcr.io/google_containers/kube-controller-manager-${ARCH}:v1.8.3    
docker tag 8c83f779e0f1 gcr.io/google_containers/kube-scheduler-${ARCH}:v1.8.3    
docker tag b1c0d274f2fb gcr.io/google_containers/kube-proxy-${ARCH}:v1.8.3    
docker tag 38bac66034a6 gcr.io/google_containers/k8s-dns-sidecar-${ARCH}:1.14.4    
docker tag a8e00546bcf3 gcr.io/google_containers/k8s-dns-kube-dns-${ARCH}:1.14.4    
docker tag f7f45b9cb733 gcr.io/google_containers/k8s-dns-dnsmasq-nanny-${ARCH}:1.14.4    
docker tag 243830dae7dd gcr.io/google_containers/etcd-${ARCH}:3.0.17    
docker tag c5e0c9a457fc gcr.io/google_containers/kube-discovery-${ARCH}:1.0       
docker tag 3fe6c6f972cd gcr.io/google_containers/etcd-${ARCH}:3.0.4     
docker tag 99e59f495ffa gcr.io/google_containers/pause-${ARCH}:3.0