ToB企服应用市场:ToB评测及商务社交产业平台

标题: ERROR [internal] load metadata for docker.io/library/node:20-alpine [打印本页]

作者: 美食家大橙子    时间: 2024-8-19 04:56
标题: ERROR [internal] load metadata for docker.io/library/node:20-alpine
docker编译时报错,除标题外,还报如下信息
  1. 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 [2600:1f18:2148:bc01:571f:e759:a87a:2961]:443: connect: network is unreachable
复制代码

则更新 如下文件
  1. vi /etc/resolv.conf
复制代码
在其中添加如下代码即可
  1. 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企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4