Docker: explicitely set uid/gid to 999 for unit user.

This allows us to be consistent through possible updates of default
settings used in distributions.  Previous behaviour was uid/gid were
chosen automatically based on what uids/gids are already taken on the
system.
This commit is contained in:
Konstantin Pavlov
2023-04-06 20:43:22 -07:00
parent 6d51672d8d
commit 472c6d0fb0

View File

@@ -58,9 +58,9 @@ RUN set -ex \
&& @@RUN@@ \ && @@RUN@@ \
&& mkdir -p /var/lib/unit/ \ && mkdir -p /var/lib/unit/ \
&& mkdir /docker-entrypoint.d/ \ && mkdir /docker-entrypoint.d/ \
&& groupadd --system unit \ && groupadd --gid 999 unit \
&& useradd \ && useradd \
--system \ --uid 999 \
--gid unit \ --gid unit \
--no-create-home \ --no-create-home \
--home /nonexistent \ --home /nonexistent \