-
Notifications
You must be signed in to change notification settings - Fork 284
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
npm not working behind a proxy in docker (16.7+) #3561
Comments
Hey there We are hitting this issue as well, we are getting exact same error:
We are using node v16.14.0 and we are running behind a proxy. The issue is appearing randomly, sometimes it works, sometimes it doesn't. Is this a confirmed issue? Is it being addressed? Any update or hint is welcome. Regards |
Hello, I also have the same issue on OpenShift behind a proxy (that is correctly set). I tried several version of nodejs (16.14.0 // 16.6.2 // 16.6.0 // 16.15.1) and of npm (8.12.2 // 8.3.1 // 8.5.2), but no luck. Sometimes it works, sometimes not... And when it fails, it's always at a different package download. Is there anything we can do? Thanks, |
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. |
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. |
Version
16.7+
Platform
Docker 20.10.7 on Linux 4.15.0-158-generic nodejs/node#166-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
I'm trying to build a node-app in docker with the following Dockerfile
Building the app (
docker build -t app:test .
) results in an error.How often does it reproduce? Is there a required condition?
For every node-image v16.7+. In 16.6 and lower, everything works fine
What is the expected behavior?
Install the dependencies
What do you see instead?
Additional information
Proxy is properly set for the docker client and for the daemon and work correctly (tested in multiple other containers/apps).
When trying to run a container manually (
docker run -it --rm node:16.7 /bin/bash
) and reproduce the steps , everything works fine.The text was updated successfully, but these errors were encountered: