Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Settings #927

Open
cubasepp opened this issue Nov 4, 2024 · 2 comments
Open

Proxy Settings #927

cubasepp opened this issue Nov 4, 2024 · 2 comments

Comments

@cubasepp
Copy link

cubasepp commented Nov 4, 2024

I found this issue:

microsoft/vscode-remote-release#6464

If I want to Build a devcontainer I have to export http_proxy as ENV, otherwise I cannot install the feature.
I am behind a corporate Proxy. Docker is configured correctly all normal build are fine.

How can I use the Proxy for installing a feature without export a ENV variable? Use the Docker Proxy...

@pustekuchen91
Copy link

Same problem here

VSCode Settings:

    "http.proxy": "http://proxy.ourdomain.de:3128",
    "http.proxyStrictSSL": false,
    "http.proxyAuthorization": null,

After choosing a Template, the connection failed

[251568 ms] Start: Run: C:\Program Files\Microsoft VS Code\Code.exe c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-containers-0.388.0\dist\spec-node\devContainersSpecCLI.js templates apply --workspace-folder C:\Users\xxx\AppData\Local\Temp\tmp-output-dir-1732627965654 --template-id ghcr.io/devcontainers/templates/ubuntu --template-args {"imageVariant":"jammy"} --features [{"id":"ghcr.io/itsmechlark/features/postgresql:1","options":{}}] --tmp-dir C:\Users\xxx\AppData\Local\Temp\tmp-dir-1732627965654 --log-level debug --omit-paths [".github/dependabot.yml"]
[251741 ms] [2024-11-26T13:32:45.822Z] @devcontainers/cli 0.71.0. Node.js v20.18.0. win32 10.0.22621 x64.
[251745 ms] [2024-11-26T13:32:45.828Z] Loading 56 extra certificates from C:\Users\xxx\AppData\Local\Temp\vsch\certificates-89a0850ff26e601ba3746ea9faaa3591f7be0787da138626eb8385efc58fd6fe.pem.
[272819 ms] Error: connect ETIMEDOUT 140.82.121.34:443
[272819 ms]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16) {
[272819 ms]   errno: -4039,
[272819 ms]   code: 'ETIMEDOUT',
[272820 ms]   syscall: 'connect',
[272820 ms]   address: '140.82.121.34',
[272820 ms]   port: 443
[272820 ms] }
[272827 ms] Exit code 1

Maybe the proxy is ignored for HTTPS Connections?

@raghav19
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants