docker 容器內安裝軟件(curl、telnet 等)


#因在容器中測試、排查故障需要,安裝基礎工具

1.切入容器:

# docker exec -ti nginx-ds-xwdf7 /bin/bash

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

#執行安裝命令
# apt-get update && apt-get install -y curl telnet 

 

原文鏈接:https://www.cnblogs.com/liucx/p/13213825.html


免責聲明!

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



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