Kubeadm init failed all the time when pull image?

  docker, question

kubeadm init

Before starting the command, I already set up http and https proxies, but there was still an error. ? What is the reason?

[preflight] Some fatal errors occurred:
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.2]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-controller-manager-amd64:v1.11.2]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-scheduler-amd64:v1.11.2]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-proxy-amd64:v1.11.2]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/pause:3.1]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/etcd-amd64:3.2.18]: exit status 1
 [ERROR ImagePull]: failed to pull image [k8s.gcr.io/coredns:1.1.3]: exit status 1

Can be solved by creating a script, downloading those images, the code is as follows, and executing after creation

#!  /bin/bash
 images=(kube-proxy-amd64:v1.11.0 kube-scheduler-amd64:v1.11.0 kube-controller-manager-amd64:v1.11.0 kube-apiserver-amd64:v1.11.0
 etcd-amd64:3.2.18 coredns:1.1.3 pause-amd64:3.1 kubernetes-dashboard-amd64:v1.8.3 k8s-dns-sidecar-amd64:1.14.9 k8s-dns-kube-dns-amd64:1.14.9
 k8s-dns-dnsmasq-nanny-amd64:1.14.9 )
 for imageName in ${images[@]} ;  do
 docker pull keveon/$imageName
 docker tag keveon/$imageName  k8s.gcr.io/$imageName
 docker rmi keveon/$imageName
 done
 # personal new sentence, V 1.11.0 must be added
 docker tag da86e6ba6ca1  k8s.gcr.io/pause:3.1