-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
使用命令构建镜像:
docker build --build-arg JDK_PKG=jdk-jdk-8u171-linux-x64.tar.gz --build-arg WEBLOGIC_JAR=fmw_12.2.1.4.0_wls_lite_generic.jar -t weblogic12014jdk8u171 .
然后会报如下错误:
[+] Building 6.0s (6/27)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 170B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/centos:latest 1.4s
=> CACHED [ 1/23] FROM docker.io/library/centos@sha256:a27fd8080b517143c 0.0s
=> CANCELED [internal] load build context 4.5s
=> => transferring context: 186.17MB 4.5s
=> ERROR [ 2/23] RUN yum -y install libnsl 4.5s
[ 2/23] RUN yum -y install libnsl:
#5 4.341 CentOS Linux 8 - AppStream 11 B/s | 38 B 00:03
#5 4.343 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
百度了下说是centos 8 于2021年12月31日停止了源的服务,需要修改yum的源等等操作,但是我用的是mac,这个怎么解决?
Metadata
Metadata
Assignees
Labels
No labels