【发布时间】:2022-04-24 10:39:00
【问题描述】:
我正在尝试使用我在 Dockerfile 中指定的 centOs 上的 yum 下载 java。 拉出 centOs 映像后,运行崩溃并抛出此错误!? 还要提一下我的服务器实例是 AWS EC2!
Step 2/9 : RUN yum install java -y
---> Running in 39fc233aa965
CentOS Linux 8 - AppStream 184 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
The command '/bin/sh -c yum install java -y' returned a non-zero code: 1
【问题讨论】:
-
这能回答你的问题吗? Centos through VM - no URLs in mirrorlist。下面的top-voted answer 表明这个(现已关闭)问题包含对此问题的答案。