报错如下
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns/coredns:v1.8.0: output: Error response from daemon: pull access denied for registry.aliyuncs.com/google_containers/coredns/coredns, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
, error: exit status 1
提示拉取 registry.aliyuncs.com/google_containers/coredns:v1.8.0 镜像失败。
在执行init之前先执行
1、docker pull coredns/coredns:1.8.0
2、docker tag coredns/coredns:1.8.0 registry.aliyuncs.com/google_containers/coredns/coredns:v1.8.0
然后执行 kubeadm init。