fix: 代理地址改为 172.17.0.1(Linux Docker 网桥网关)

This commit is contained in:
2026-03-01 00:09:33 +08:00
parent c8e9c66f09
commit f4b31b303b
2 changed files with 7 additions and 1 deletions
Vendored
+1 -1
View File
@@ -18,7 +18,7 @@ pipeline {
stage('Build Docker Image') {
steps {
sh "docker build --build-arg HTTP_PROXY=http://host.docker.internal:7897 --build-arg HTTPS_PROXY=http://host.docker.internal:7897 -t ${APP_NAME}:${BUILD_NUMBER} -t ${APP_NAME}:latest ."
sh "docker build --build-arg HTTP_PROXY=http://172.17.0.1:7897 --build-arg HTTPS_PROXY=http://172.17.0.1:7897 -t ${APP_NAME}:${BUILD_NUMBER} -t ${APP_NAME}:latest ."
}
}