docker pull拉取镜像报错: failed to do request: Head "https://registry-1.docker.i
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head "https://registry-1.docker.io/v2/frolvlad/alpine-java/manifests/jdk8-slim": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: read udp 192.168.65.4:42832->192.168.65.5:53: i/o timeout
ERROR: Service 'myjar' failed to build : Build failed
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 162.125.2.5:443: i/o timeout
修改daemon.json 文件 替换镜像源即可
windwos系统:C:\用户(Users)\你电脑用户名\.docker
daemon.json
{
"registry-mirrors": [
"https://docker.m.daocloud.io"
]
}
git地址:https://github.com/DaoCloud/public-image-mirror
然后重启docker服务
-----------------------有任何问题可以在评论区评论,也可以私信我,我看到的话会进行回复,欢迎大家指教------------------------
(蓝奏云官网有些地址失效了,需要把请求地址lanzous改成lanzoux才可以)