Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnsl缺失问题继续排坑(m1) #10

Open
Whoopsunix opened this issue Mar 16, 2023 · 3 comments
Open

libnsl缺失问题继续排坑(m1) #10

Whoopsunix opened this issue Mar 16, 2023 · 3 comments

Comments

@Whoopsunix
Copy link

参考上一个issue还是会出现libnsl包丢失的问题,尝试在centos7下解决了小一会还是没解决(换源、make等。。)
最后换centos8、换阿里的centos-vault源后解决问题
愿世界上没有难配的环境。。🙏

Dockerfile 参考:

# 基础镜像
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

顺带说一下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

@su18
Copy link

su18 commented Apr 21, 2023

亲测可用,师傅牛逼

@exp0l0zzz
Copy link

但是现在在登陆页面,登不进去后台,有解决方案吗

@exp0l0zzz
Copy link

exp0l0zzz commented Jul 29, 2024

我这个不需要换源就ok

# 基础镜像
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants