From 472c6d0fb0e72846349a330b1658d3f95b6fc632 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Thu, 6 Apr 2023 20:43:22 -0700 Subject: [PATCH] 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. --- pkg/docker/template.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile index 4ff6ee05..36b2db1e 100644 --- a/pkg/docker/template.Dockerfile +++ b/pkg/docker/template.Dockerfile @@ -58,9 +58,9 @@ RUN set -ex \ && @@RUN@@ \ && mkdir -p /var/lib/unit/ \ && mkdir /docker-entrypoint.d/ \ - && groupadd --system unit \ + && groupadd --gid 999 unit \ && useradd \ - --system \ + --uid 999 \ --gid unit \ --no-create-home \ --home /nonexistent \