#因在容器中排查故障需要,安装基础工具
# 查看系统版本: 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