原文:jenkins構建報錯"' : Failed to establish a new connection: [Errno -2] Name or service not known'"

問題現象 jenkins容器內發起接口請求報錯: 分析 報主機無法獲取,在Jenkins容器內ping主機域名 如未安裝ping,先安裝ping工具 ,ping不通說明網絡連接配置有誤 解決 jenkins容器內 etc hosts新增一行配置,格式為:主機ip地址 域名 如需要對testerhome.com發起請求,先用ping命令確定ip,然后編輯入hosts文件內 注意點 每次重啟容器后, ...

2021-12-28 10:37 0 1688 推薦指數:

查看詳情

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