• 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 
  • 相关阅读:
    0722
    SGU
    预测一下吧
    0625
    0624
    0610
    0607
    0604
    poj2455Secret Milking Machine【二分 + 最大流】
    BZOJ3489: A simple rmq problem
  • 原文地址:https://www.cnblogs.com/fengjian2016/p/9970778.html
Copyright © 2020-2023  润新知