You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 基础镜像
FROM centos:centos8
# 参数
ARG JDK_PKG
ARG WEBLOGIC_JAR
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
RUN yum clean all
RUN yum makecache
# 解决libnsl包丢失的问题
RUN yum -y install libnsl
# 基础镜像
FROM --platform=linux/amd64 centos
# 参数
ARG JDK_PKG
ARG WEBLOGIC_JAR
# 解决libnsl包丢失的问题
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
#CMD /bin/bash
RUN yum -y install libnsl
参考上一个issue还是会出现libnsl包丢失的问题,尝试在centos7下解决了小一会还是没解决(换源、make等。。)
最后换centos8、换阿里的centos-vault源后解决问题
愿世界上没有难配的环境。。🙏
Dockerfile 参考:
顺带说一下m1的x86搭建
docker buildx build --platform=linux/x86_64
docker run --platform=linux/x86_64
🔗阿里镜像链接 https://developer.aliyun.com/mirror/centos/?spm=a2c6h.25603864.0.0.6f6e66edt2Fjqp
The text was updated successfully, but these errors were encountered: