Replies: 3 comments
-
I got the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It'd be great you share your evn details (in detail) please. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same issue, using a private registry, but passing in the correct values. Was working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hello, I have two problems with running verdaccio in docker behind a proxy.
npm adduser
only on the docker host or inside the container.npm publish
on a client, the docker host nor inside the container.The problems are related to the proxy. On a proxy-free environment I get no errors.
The npm publish does not use the given proxy, even if I set them with export.
This works fine and goes through the proxy.
http_proxy=http://myproxy:8080 curl -v http://registry.npmjs.org
This is my first bugreport. I provide additional information if I forgot something.
#1:
npm adduser --registry http://dockerhost:4873
on a client gives me this errormessage:The errorlog contains this:
#2:
npm publish --registry http://dockerhost:4873
on a client gives me this erroemessageThe errorlog contains this:
The errorlog contains this:
npm publish --registry http://localhost:4873
inside the container gives me this:The errorlog contains this:
To Reproduce
docker-compose.yml
to run verdaccio but it even happens if I use just the docker commanddocker run -d --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
Run
docker-compose up
result: error because the
config.yaml
is missing.I copied the content of this file into /docker/verdaccio/config/config.yaml verdaccio docker.yaml and added these two lines: http_proxy: http://myproxy:8080 https_proxy: http://myproxy:8080
Run
docker-compose up
Result:
npm adduser --registry http://dockerhost:4873
is not running -> 503 error on a client, works only on the docker host and inside the containernpm publish --registry http://dockerhost:4873
is not running -> 503 on a client, 503 uplink is down on the docker host and inside the containerI also used your baseimage node:14.15.4-alpine and got the same error. I used about 10 other versions of node and I got no error. so I could identify that the error only happens in the image node:14.15.4-alpine.
I also tried to
export https_proxy
andexport http_proxy
without positiv result.Expected behavior
i expect to run verdaccio with all its features in our environment with a configured proxy. maybe you could change the baseimage.
Configuration File
~/.config/verdaccio/config.yaml
/opt/verdaccio #
cat /verdaccio/conf/config.yaml
Environment information
Additional Docker Log
Beta Was this translation helpful? Give feedback.
All reactions