I am behind a corporate proxy. I have HTTP_PROXY
, HTTPS_PROXY
, and NO_PROXY
set in the image. When I'm connected to the network I have access to a private npm
registry that is on this intranet. My docker image is unable to access this registry.
On the host machine, a mac, I can run:
curl https://<registry>/nodejs/content/groups/npm/lodash
And I get the JSON for the package.
On the docker image I run the same command and I get this:
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
When I npm install
with the registry set it also returns the same issue.
Why can't docker access the same endpoint that my host machine can? How can I enable it to?