diff --git a/pkg/build/accounts.go b/pkg/build/accounts.go index 30892c97..02b1ab3c 100644 --- a/pkg/build/accounts.go +++ b/pkg/build/accounts.go @@ -38,9 +38,6 @@ func appendGroup(groups []passwd.GroupEntry, group types.Group) []passwd.GroupEn } func userToUserEntry(user types.User) passwd.UserEntry { - if user.GID == 0 { - user.GID = user.UID - } if user.Shell == "" { user.Shell = "/bin/sh" } diff --git a/pkg/build/types/image_configuration.go b/pkg/build/types/image_configuration.go index 089fcf3c..c8217837 100644 --- a/pkg/build/types/image_configuration.go +++ b/pkg/build/types/image_configuration.go @@ -214,10 +214,6 @@ func (ic *ImageConfiguration) Validate() error { if g.GroupName == "" { return fmt.Errorf("configured group %v has no configured group name", g) } - - if g.GID == 0 { - return fmt.Errorf("configured group %v has GID 0", g) - } } return nil }