Skip to content

Commit

Permalink
Use /tmp as $HOME for the 1100 user in the rootless image
Browse files Browse the repository at this point in the history
`kubectl` needs a place to cache files. Currently, the home for that user is `/`, which is not writable. Change it to `/tmp` to fix the issue.
  • Loading branch information
giannello authored and groundnuty committed Jan 7, 2025
1 parent 79b1f15 commit 86a1afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DockerfileNonRoot.snipset
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN addgroup -g $GID $USER && \
adduser \
--disabled-password \
--gecos "" \
--home "$(pwd)" \
--home "/tmp" \
--ingroup "$USER" \
--no-create-home \
--uid "$UID" \
Expand Down

0 comments on commit 86a1afe

Please sign in to comment.