# docker ps -a
docker: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory

 

官方的jenkins镜像是基于Debian GNU/Linux 9,使用Dockerfile重新打image

FROM docker.io/jenkins
USER root
#清除了基础镜像设置的源,切换成阿里云源
RUN echo '' > /etc/apt/sources.list.d/jessie-backports.list \
  && echo "deb http://mirrors.aliyun.com/debian jessie main contrib non-free" > /etc/apt/sources.list \
  && echo "deb http://mirrors.aliyun.com/debian jessie-updates main contrib non-free" >> /etc/apt/sources.list \
  && echo "deb http://mirrors.aliyun.com/debian-security jessie/updates main contrib non-free" >> /etc/apt/sources.list
#更新源并安装缺少的包
RUN apt-get update && apt-get install -y libltdl7
ARG dockerGid=999

RUN echo "docker:x:${dockerGid}:jenkins" >> /etc/group 

 

相关文章:

  • 2021-12-09
  • 2021-08-03
  • 2021-08-02
  • 2021-08-21
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2021-07-16
  • 2021-04-08
  • 2021-11-19
  • 2021-09-17
  • 2021-10-09
  • 2021-11-20
  • 2021-10-04
相关资源
相似解决方案