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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM