docker desktop拉取镜像失败,例如:

docker pull registry.cn-hangzhou.aliyuncs.com/library/mysql:8.0

What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview registry.cn-hangzhou.aliyuncs.com/library/mysql:8.0
Error response from daemon: pull access denied for registry.cn-hangzhou.aliyuncs.com/library/mysql, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

解决方案:
Docker Desktop → Settings → Docker Engine,把下面这些镜像源加到 registry-mirrors,保存并重启

{
  "registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://mirror.baidubce.com",
    "https://hub-mirror.c.163.com"
  ]
}

最终结果:

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐