Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Docker bind mount wrong chown instructions provided when verdaccio >= v4.0 #132

Open
coolsp opened this issue May 31, 2019 · 6 comments
Open
Labels
bug Something isn't working documentation hacktoberfest 🎃 help wanted Extra attention is needed

Comments

@coolsp
Copy link
Member

coolsp commented May 31, 2019

Following note in the Docker-doc specifies the wrong chown user:group:

Note: Verdaccio runs as a non-root user (uid=10001) inside the container, if you use bind mount to override default, you need to make sure the mount directory is assigned to the right user. In above example, you need to run sudo chown -R 100:101 /opt/verdaccio otherwise you will get permission errors at runtime. Use docker volume is recommended over using bind mount.

This used to work pre v4.0 but, inspecting the Dockerfile for v4.0 and looking in the container shows:

  • user 'verdaccio' id: 10001
  • belonging to group 'nogroup' with id: 65533

So, chown instructions in the note should read: sudo chown -R 10001:65533 /opt/verdaccio

There is also an indication of this in the original note itself as it mentions uid=10001

@juanpicado juanpicado added bug Something isn't working documentation labels Jun 4, 2019
@juanpicado
Copy link
Member

That's actually my bad 😢

@juanpicado juanpicado added the help wanted Extra attention is needed label Jun 21, 2019
@ShawnToubeau
Copy link
Contributor

Hi! Do you mind if I take this one on?

@juanpicado
Copy link
Member

Go ahead, do you know where ?

@ShawnToubeau
Copy link
Contributor

Ya I think so! I'll let you know if I have any trouble 👍

@ShawnToubeau
Copy link
Contributor

Just opened a PR~ #196
Lmk if it looks good or if you need any changes 😄

@ShawnToubeau
Copy link
Contributor

Update: I was having trouble undoing my pushed changes so I started from scratch here: #197

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation hacktoberfest 🎃 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants