8000 Cache directory cannot be changed · verdaccio · Discussion #5213 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cache directory cannot be changed #5213

Answered by Iatbzh
Iatbzh asked this question in Q&A
Apr 28, 2025 · 2 comments · 16 replies
Discussion options

You must be logged in to vote

我测试了下,是我的问题,因为我想用宿主机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

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
11 replies
@Iatbzh
Comment options

@Iatbzh
Comment options

@mbtools
Comment options

mbtools Apr 30, 2025
Collaborator

@Iatbzh
Comment options

@mbtools
Comment options

mbtools Apr 30, 2025
Collaborator

Comment options

You must be logged in to vote
5 replies
@mbtools
Comment options

mbtools Apr 30, 2025
Collaborator

@Iatbzh
Comment options

@mbtools
Comment options

mbtools May 1, 2025
Collaborator

@Iatbzh
Comment options

Answer selected by Iatbzh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #5212 on April 29, 2025 08:46.

0