alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.11k stars 264 forks source link

ping group has common groupid 999 #323

Open rtaycher opened 1 year ago

rtaycher commented 1 year ago

Ping has groupid 999.

This groupid is much more likely to be used for a new user/group in derived images(especially when mapping host userid/groupid) then any of the other groupids(utmp is 406, nogroup and nobody group are in the 60000s) can we change it to be something like 4xx/487 or something?

ncopa commented 1 year ago

why is this likely to be used a new user/group in derived images?

do you have any specific example?

oc-ben-ellis commented 1 year ago

docker group is also 999 by default I believe?

ncopa commented 1 year ago

docker group is also 999 by default I believe?

Its 105 here:

ncopa-desktop:~$ grep docker /etc/group
docker:x:105:ncopa
rtaycher commented 8 months ago

why is this likely to be used a new user/group in derived images?

do you have any specific example?

I think I was mapping the main sudo user(and their group) on the docker host to simplify file permissions in mounted directories.

aghr commented 3 months ago

Dear All, I want to provide input. @rtaycher is right: My Linux group id is 999 with name XXX. Inside the alpine container it gets mapped to the name ping and with ls -la I see group=ping for all my files.