Skip to content
Discussion options

You must be logged in to vote

This is caused by starting the docker container (verdaccio) with root user privileges on the host and mounting a folder belonging to the root user. Because the user in the container (verdaccio) is verdaccio, it does not have permission to access the directory of the root user.

We can change the ownership of the folder on the host to the docker container (verdaccio).

# The following commands are operated on the host machine
# "/data/verdaccio" is the mount root path of my docker container.
# chown -R <UID>:<GID> /data/verdaccio
chown -R 10001:65533 /data/verdaccio

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@juanpicado
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mbtools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4449 on January 17, 2024 09:25.