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 committed Nov 3, 2023
1 parent ec2dc36 commit 8bec3bc
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 8bec3bc

Please sign in to comment.