美食家大橙子 发表于 2024-8-19 04:56:05

ERROR [internal] load metadata for docker.io/library/node:20-alpine

docker编译时报错,除标题外,还报如下信息
ERROR: failed to solve: node:20-alpine: failed to resolve source metadata for docker.io/library/node:20-alpine: failed to do request: Head "https://registry-1.docker.io/v2/library/node/manifests/20-alpine": dial tcp :443: connect: network is unreachable
则更新 如下文件
vi /etc/resolv.conf 在其中添加如下代码即可
nameserver 114.114.114.114
然后可以通过 docker pull 该链接 来测试是否成功。


参见:
解决docker拉取镜像报错:Error response from daemon: Get “https://registry-1.docker.io/v2/“: dial tcp-CSDN博客

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: ERROR [internal] load metadata for docker.io/library/node:20-alpine