Skip to content

Commit 8082237

Browse files
committed
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.
1 parent 00ff4ca commit 8082237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/docker/template.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ RUN set -ex \
5454
&& @@RUN@@ \
5555
&& mkdir -p /var/lib/unit/ \
5656
&& mkdir /docker-entrypoint.d/ \
57-
&& groupadd --system unit \
57+
&& groupadd --gid 999 unit \
5858
&& useradd \
59-
--system \
59+
--uid 999 \
6060
--gid unit \
6161
--no-create-home \
6262
--home /nonexistent \

0 commit comments

Comments
 (0)