二、K8S镜像问题
根据前面错误信息来看我们需要下载的镜像。就当前来说,用户 mirrorgooglecontainers 在 docker hub 同步了所有 k8s 最新的镜像,先从这儿下载,然后修改 tag 即可。 docker pull mirrorgooglecontainers/kube-apiserver:v1.13.4 docker pull mirrorgooglecontainers/kube-controller-manager:v1.13.4 docker pull mirrorgooglecontainers/kube-scheduler:v1.13.4 docker pull mirrorgooglecontainers/kube-proxy:v1.13.4 docker pull mirrorgooglecontainers/pause:3.1 docker pull mirrorgooglecontainers/etcd:3.2.24 docker pull coredns/coredns:1.2.6 分别修改上述镜像的标签。 docker tag mirrorgooglecontainers/kube-apiserver:v1.13.4 k8s.gcr.io/kube-apiserver:v1.13.4 docker tag mirrorgooglecontainers/kube-controller-manager:v1.13.4 k8s.gcr.io/kube-controller-manager:v1.13.4 docker tag mirrorgooglecontainers/kube-scheduler:v1.13.4 k8s.gcr.io/kube-scheduler:v1.13.4 docker tag mirrorgooglecontainers/kube-proxy:v1.13.4 k8s.gcr.io/kube-proxy:v1.13.4 docker tag mirrorgooglecontainers/pause:3.1 k8s.gcr.io/pause:3.1 docker tag mirrorgooglecontainers/etcd:3.2.24 k8s.gcr.io/etcd:3.2.24 kubeadm init --kubernetes-version=v1.13.4 --ignore-preflight-errors=NumCPU docker 版本 K8S支持 18.06的 sudo yum install docker-ce-18.06.0.ce-3.el7 docker version 列出你安装过的包 $ yum list installed | grep docker 删除安装包 $ sudo yum -y remove docker-ce.x86_64 删除镜像/容器等 $ rm -rf /var/lib/docker https://blog.csdn.net/isea533/article/details/86769125
![](https://img2018.cnblogs.com/blog/866435/201903/866435-20190313042447527-1176657144.png)
点到为止