docker in docker 出现 libltdl.so.7 问题
# 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