问题:[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

原因:是因为要访问google,国内屏蔽了。

解决办法:根据报错信息拉去最新镜像并重新打tag

docker pull coredns/coredns
docker tag coredns/coredns:latest
docker tag coredns/coredns:latest registry.aliyuncs.com/google_containers/coredns/coredns:v1.8.0

注意:最后一步的REPOSITORY 是报错中给出的,有的报错是registry.cn-hangzhou.aliyuncs.com,带着cn-hangzhou,根据自己的错误信息打tag

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐