mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #658] Support for native docker --user UID:GID option #240
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rokiden on GitHub (Aug 27, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/658
I prefer use native docker UID:GID option like:
docker run --rm --user 1000:1000 nitnelave/lldap:stablebut nowgithub.com/lldap/lldap@8e61ee60d5/docker-entrypoint.sh (L25)throws error
I think /app needs only read and execute permissions that can be provided at build, /data permissions usually provided externally (by user).
Affected any lldap version since
46546dac27commit (stable and latest tested).Thanks for your great work!
@nitnelave commented on GitHub (Aug 27, 2023):
Hey! I believe that came up already before. The entry point as is requires root to setup the permissions for a painless first time start. It's the best for the majority of users. It downgrades to the given UID when running LLDAP.
Some people want to run the entire container as not-root. This is understandable, and can be easily done by overriding the entry point with your custom script (or even just setting LLDAP as the entry point directly).
Would that work for you?
@rokiden commented on GitHub (Aug 27, 2023):
Yes, it's my current workaround, but it feels like something not update-compatible, my setup becomes dependent on your app internals, that can be changed in future. But if it's official way to do it, I'll use it. Thanks.