docker desktop拉取镜像失败解决方案
docker desktop拉取镜像失败,例如:
docker pull registry.cn-hangzhou.aliyuncs.com/library/mysql:8.0What'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"]
}