You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
mrshu
changed the title
[Bug]
[Bug] Docker Compose Installation issues on macOS
Nov 4, 2024
Hey @mrshu! 👋 I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. Let's squash those bugs together!
The error "unable to find user nextjs: no matching entries in passwd file" suggests that the 'nextjs' user is not being created or recognized in the Docker environment. This user is supposed to be created in the Dockerfile for Lobe Chat to run the application with a non-root user for security reasons.
To troubleshoot this issue, ensure that the Dockerfile includes the necessary steps to create the 'nextjs' user. The relevant section should look like this:
RUN \
# Add nextjs:nodejs to run the app
addgroup -S -g 1001 nodejs \
&& adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
# Set permission for nextjs:nodejs
&& chown -R nextjs:nodejs /app /etc/proxychains4.conf
Additionally, verify that the Docker Compose file includes the instruction USER nextjs to specify that the container should run as the 'nextjs' user [1].
If these steps are already in place, try rebuilding the Docker image to ensure that all changes are applied correctly.
📦 Environment
Docker, Other
📌 Version
v1.26.20
💻 Operating System
macOS
🌐 Browser
Chrome
🐛 Bug Description
When going through Docker Compose tutorial, I ran into this:
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: