Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random user ID in Docker image makes bind mount difficult #40

Open
zhen-huan-hu opened this issue Jan 19, 2025 · 0 comments
Open

Random user ID in Docker image makes bind mount difficult #40

zhen-huan-hu opened this issue Jan 19, 2025 · 0 comments

Comments

@zhen-huan-hu
Copy link

It seems the Dockerfile creates a user itself

RUN groupadd -r -f librum-server
RUN useradd -r -g librum-server -d /var/lib/librum-server --shell /usr/sbin/nologin librum-server

This is really unnecessary and unorthodox. The randomly assigned user ID inside the image had nothing to do with user IDs on the host so it makes using bind mount for the storage directory difficult.

A better approach would be just leaving it to the users to assign a user and group ID at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant