From c978f835bc33509324b51cb210c8c5c9934c38ff Mon Sep 17 00:00:00 2001 From: Elisey Zanko Date: Sat, 8 Jun 2019 16:49:53 +0500 Subject: [PATCH] Set UID/GID to 1000 --- 3.4.14/Dockerfile | 4 ++-- 3.5.5/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3.4.14/Dockerfile b/3.4.14/Dockerfile index 0dd104e..eeed477 100644 --- a/3.4.14/Dockerfile +++ b/3.4.14/Dockerfile @@ -13,8 +13,8 @@ ENV ZOO_CONF_DIR=/conf \ # Add a user with an explicit UID/GID and create necessary directories RUN set -eux; \ - groupadd -r zookeeper --gid=999; \ - useradd -r -g zookeeper --uid=999 zookeeper; \ + groupadd -r zookeeper --gid=1000; \ + useradd -r -g zookeeper --uid=1000 zookeeper; \ mkdir -p "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR"; \ chown zookeeper:zookeeper "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR" diff --git a/3.5.5/Dockerfile b/3.5.5/Dockerfile index 264ded1..5e882d7 100644 --- a/3.5.5/Dockerfile +++ b/3.5.5/Dockerfile @@ -15,8 +15,8 @@ ENV ZOO_CONF_DIR=/conf \ # Add a user with an explicit UID/GID and create necessary directories RUN set -eux; \ - groupadd -r zookeeper --gid=999; \ - useradd -r -g zookeeper --uid=999 zookeeper; \ + groupadd -r zookeeper --gid=1000; \ + useradd -r -g zookeeper --uid=1000 zookeeper; \ mkdir -p "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR"; \ chown zookeeper:zookeeper "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR"