Docker容器

docker pull拉取镜像报错: failed to do request: Head "https://registry-1.docker.i

本文主要是介绍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 pull拉取镜像报错: failed to do request: Head "https://registry-1.docker.i的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!