Skip to content

Specify ID for both nginx user and group #1008

@dp-anto

Description

@dp-anto

Feature Overview

Currently the user and group nginx set their IDs to 101:

&& addgroup -g 101 -S nginx \
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \

This ID can sometimes conflict with an existing host user generating possible security risks.
Would it be possible to set an ID above 1000 just to reduce the probabilities of conflicts or, alternatively, would it be possible to specify the ID while creating the container?

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions