k8s安装 从k8s.gcr.io 拉取镜像失败
问题:[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_conta
·
问题:[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
更多推荐
已为社区贡献1条内容
所有评论(0)