无法检索镜像列表http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container

问题描述 投票:0回答:1

我目前遇到了依赖 centos7 的 docker 构建的问题 我参考图像如下:

FROM centos:7

错误: `无法检索镜像列表http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo错误是

curl#6 - “无法解析主机:mirrorlist.centos.org;未知错误”`

我了解 centos7 已于 2024 年 6 月 30 日停产;但是,我认为这不会破坏构建? 我是否遗漏了什么并且需要改变?我需要指向不同的图像吗?

docker image dockerfile centos centos7
1个回答
0
投票

根据https://www.centos.org/download/mirrors/ 从 CentOS Stream 9 开始,镜像在 Mirrormanager 中列出,因此请使用此链接 - https://mirrormanager.fedoraproject.org/mirrors/CentOS

© www.soinside.com 2019 - 2024. All rights reserved.