summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
commit472c6d0fb0e72846349a330b1658d3f95b6fc632 (patch)
treea0489b0e14ef864b7e872081574cd77b9923c160 /pkg
parent6d51672d8d9b613c69134d918ef01194e227e898 (diff)
downloadunit-472c6d0fb0e72846349a330b1658d3f95b6fc632.tar.gz
unit-472c6d0fb0e72846349a330b1658d3f95b6fc632.tar.bz2
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.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/docker/template.Dockerfile4
1 files 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 \