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 (#22446)

(cherry picked from commit e008580)
  • Loading branch information
lhotari committed Apr 5, 2024
1 parent 71fffaf commit 4a5d14c
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 @@ -107,5 +107,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 4a5d14c

Please sign in to comment.