Reduce required namespace mapping via manually generated user#10
Reduce required namespace mapping via manually generated user#10lethedata wants to merge 1 commit intodockur:masterfrom lethedata:GUDmapping
Conversation
|
Ran into issues reopening PR #9 after rebasing on recent version hence the new PR |
Replace apk tor user with generated toranan user and group to reduce required namespace mapping from 65535 to 102. UID 100 is used to match original tor UID while GID 101 is used to avoid existing group.
|
It would be nice if you first explained a bit why the namespace mapping has to be reduced? What advantage does it bring? |
|
No longer needed due to Alpine tor package adding group creation to pre-install via commit c0113e27 |
Although no longer needed, here's the answer to your question: tldr: normal subid/subgid range is 66536 and this container defaulted to basically needing the full range (65534), even tho it technically didn't need it. The high range was caused due to the When isolating containers with the A better explanation of docker container isolation: |
Replace apk tor user with generated toranan user and group to reduce required namespace mapping from full 65535 range to 102 range. UID 100 is used to match original tor UID while GID 101 is used to avoid existing group.