fix: isolate provider docker config during deploy

This commit is contained in:
Codex
2026-05-18 00:59:49 +00:00
parent b605c78875
commit 21a9b73850
+3
View File
@@ -828,6 +828,9 @@ function sourceProxyPrelude(service: UniDeskMicroserviceConfig): string {
if (targetIsMain(service)) return "";
const strictHostKeyChecking = isUnideskRepo(service.repository.url) ? "yes" : "accept-new";
return [
"export DOCKER_CONFIG=/tmp/unidesk-docker-config-clean",
"mkdir -p \"$DOCKER_CONFIG\"",
"[ -f \"$DOCKER_CONFIG/config.json\" ] || printf '{}' > \"$DOCKER_CONFIG/config.json\"",
`build_proxy=${shellQuote(providerGatewayWsEgressProxyUrl)}`,
"export HTTP_PROXY=\"$build_proxy\" HTTPS_PROXY=\"$build_proxy\" ALL_PROXY=\"$build_proxy\"",
"export NO_PROXY=\"localhost,127.0.0.1,::1,host.docker.internal\"",