From 66333edc2303e86dde4dc860c4bf006422c94f3e Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Fri, 5 Apr 2024 09:14:22 -0700 Subject: [PATCH] [improve][misc] Specify valid home dir for the default user in the Ubuntu based docker image (#22446) (cherry picked from commit e008580f0fd00451fb9b05caf53757ba6539ba61) (cherry picked from commit c9b656ca8c4485c2e4a9a0d9af7f47a1f909c0cc) --- docker/pulsar/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile index 10bd2b5ee2675..b899fb6182829 100644 --- a/docker/pulsar/Dockerfile +++ b/docker/pulsar/Dockerfile @@ -110,5 +110,5 @@ RUN chmod +x /pulsar/bin/install-pulsar-client.sh RUN /pulsar/bin/install-pulsar-client.sh # The UID must be non-zero. Otherwise, it is arbitrary. No logic should rely on its specific value. -RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0 +RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0 --no-create-home --home-dir /pulsar/data USER 10000