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出售(等宽等高字符四字域名,可组合多种有意义词语)。
原文地址:https://www.cnblogs.com/zhaogaojian/p/14979899.html