Skip to content

Commit

Permalink
[improve][misc] Specify valid home dir for the default user in the Ub…
Browse files Browse the repository at this point in the history
…untu based docker image (apache#22446)

(cherry picked from commit e008580)
(cherry picked from commit c9b656c)
  • Loading branch information
lhotari authored and nikhil-ctds committed Apr 5, 2024
1 parent 95d8662 commit 66333ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/pulsar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 66333ed

Please sign in to comment.