Skip to content

Commit

Permalink
Dockerfile: make it clear that non-root support is experimental (#774)
Browse files Browse the repository at this point in the history
Users looking at the Dockerfile may not understand that non-root support
is both undocumented and experimental. This commit makes that status
explicit with a comment.
  • Loading branch information
rfratto authored May 8, 2024
1 parent bcb1d29 commit e703168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ COPY --from=build /src/alloy/build/alloy /bin/alloy
COPY example-config.alloy /etc/alloy/config.alloy

# Create alloy user in container, but do not set it as default
#
# NOTE(rfratto): non-root support in Docker containers is an experimental,
# undocumented feature; use at your own risk.
RUN groupadd --gid $UID $USERNAME
RUN useradd -m -u $UID -g $UID $USERNAME
RUN chown -R $USERNAME:$USERNAME /etc/alloy
Expand Down

0 comments on commit e703168

Please sign in to comment.