Skip to content

Commit

Permalink
Precreate and chown snapshots and storage dirs (#2921)
Browse files Browse the repository at this point in the history
... in unprivileged mode to avoid Docker named volumes being owned by
the root user.
  • Loading branch information
ilkecan authored and generall committed Dec 6, 2023
1 parent d5f98d8 commit 44499a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ ARG USER_ID=0
RUN if [ "$USER_ID" != 0 ]; then \
groupadd --gid "$USER_ID" qdrant; \
useradd --uid "$USER_ID" --gid "$USER_ID" -m qdrant; \
mkdir -p snapshots storage; \
chown -R "$USER_ID:$USER_ID" "$APP"; \
fi

Expand Down

0 comments on commit 44499a1

Please sign in to comment.