Skip to content

Commit 5b82329

Browse files
lhotarisrinath-ctds
authored andcommitted
[improve][misc] Specify valid home dir for the default user in the Ubuntu based docker image (apache#22446)
(cherry picked from commit e008580) (cherry picked from commit c9b656c)
1 parent a20af42 commit 5b82329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/pulsar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ RUN chmod +x /pulsar/bin/install-pulsar-client.sh
110110
RUN /pulsar/bin/install-pulsar-client.sh
111111

112112
# The UID must be non-zero. Otherwise, it is arbitrary. No logic should rely on its specific value.
113-
RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0
113+
RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0 --no-create-home --home-dir /pulsar/data
114114
USER 10000

0 commit comments

Comments
 (0)