Skip to content

GID already in use #6

@xxlbug

Description

@xxlbug

Hi there,

thank you for making this, i got really frustrated with gitlab, gitea and gogs. Git-server seems to be all i need and is much leaner :-)

I have a small but important problem which prohibits me from using git-server right now:

On my host system the UID and GID i want to use for git-server are 99/100. On boot i get the error that GID 100 is already in use (from the default group "users" as seen in /etc/group).

08/01/2023 21:36:15 deluser: can't find git in /etc/group 08/01/2023 21:36:15 addgroup: gid '100' in use 08/01/2023 21:36:16 id: unknown user git 08/01/2023 21:36:16 deluser: unknown user git

I could change the dockerfile to manually change the gids around but wanted to try to find a better solution which also avoids this problem in the future for others.

My ideas so far:

  • if the uid/gid is already in use inside the image, just take it instead of the "git" user/group, only the ids are important not the name
  • have some kind of logic to reassign the default uid/gids of alpine to something like 999999 in case of conflict
  • delete everything from the uid/gids in this image which is not absolutly necessary to avoid conflicts as far as possible (but wouldn't help me, since nobody is a system group, i think)
  • allow only the given uid or gid to be assigned, not both in case only uid is given

I can make the changes and create an PR but would like to have some input before.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions