diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
commit | 8082237740e2346286dde740ed7f9d39b45a06e1 (patch) | |
tree | 68fb865259e404ebab2f661a23c4ac601abfc2b4 /pkg/docker/template.Dockerfile | |
parent | 00ff4ca4962370fe42d235d170570bc0691d5d09 (diff) | |
download | unit-8082237740e2346286dde740ed7f9d39b45a06e1.tar.gz unit-8082237740e2346286dde740ed7f9d39b45a06e1.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 '')
-rw-r--r-- | pkg/docker/template.Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile index ba3fb650..ba267649 100644 --- a/pkg/docker/template.Dockerfile +++ b/pkg/docker/template.Dockerfile @@ -54,9 +54,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 \ |