• Docker容器中安装curl、telnet、vim基础工具


     

    #因在容器中排查故障需要,安装基础工具

    # 查看系统版本: cat /etc/os-releas

    Debian基础镜像
    #先添加163源
    tee /etc/apt/sources.list << EOF
    deb http://mirrors.163.com/debian/ jessie main non-ffree contrib
    deb http://mirrirs.163.com/debian/ jessie-updates main non-free contrib
    EOF

    #  https://www.cnblogs.com/liucx

    #安装 curl telnet
    apt-get update && apt-get install -y curl telnet vim

     

    Alpine基础镜像

    #先添加阿里源
    cat > /etc/apk/repositories << EOF
    http://mirrors.aliyun.com/alpine/v3.12/main/
    http://mirrors.aliyun.com/alpine/v3.12/community
    EOF
    #安装 curl scp telnet vim
    apk update && apk add curl openssh-client busybox-extras vim

     

    转自:https://www.cnblogs.com/liucx/p/13213825.html

     

    1、建了一个小群:616945527(软件), 欢迎大家加入,加群口令abc123,硬件嵌入式开发者推荐75764412(单片机)。
    闲置域名www.nsxz.com出售(等宽等高字符四字域名,可组合多种有意义词语)。
  • 相关阅读:
    项目ITP(五) spring4.0 整合 Quartz 实现任务调度
    [Git 系列] WIN7下Git的安装
    Candy
    OSGI
    JAVA编程思想(1)
    [python] 字典和列表中的pop()函数
    R语言编程语法
    Linux 之创建工作目录-mkdir
    python 之 改变工作目录
    python 之 'and' 和 'or'
  • 原文地址:https://www.cnblogs.com/zhaogaojian/p/14979899.html
Copyright © 2020-2023  润新知