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

 

修改daemon.json 文件 替换镜像源即可

 

windwos系统:C:\用户(Users)\你电脑用户名\.docker

 

 修改

 

 

 

 "registry-mirrors": [
    "http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn/"
  ],

 

 

 然后重启docker服务

 

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...