-
Your environment
Describe the bug Steps to reproduce
Expected behavior Screenshots, Verdaccio server log, package manager log Configuration file
Debugging output
Contribute to Verdaccio
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
It looks like Verdaccio does not use your config. The docker image has a volume at |
Beta Was this translation helpful? Give feedback.
-
Could you please add the Verdaccio log with DEBUG on so we see where it goes wrong?
Then start the server and post the log here. |
Beta Was this translation helpful? Give feedback.
我测试了下,是我的问题,因为我想用宿主机verdaccio目录直接映射到容器/verdaccio目录,但是实际上Dockerfile对/verdaccio/storage创建了volume,所以再怎么挂载都没用和权限无关,所以需要指定-v 指定storage,如下
docker run -d --name rsync-npm -p 4873:4873 \ -v /tmp/test/verdaccio/conf:/verdaccio/conf \ -v /tmp/test/verdaccio/storage:/verdaccio/storage \ --restart=always \ verdaccio/verdaccio
Edit: English 😉
I tested it and it turned out to be my problem, because I wanted to use the host verdaccio directory to map directly to the container /verdaccio directory, but in fact Dockerfile created a volume for /verdaccio/storage, so no matter how I mounted it, it was useless and had nothing to do with permissions, so I needed to specify -v to specify storage, as follows