Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Cannot run unprivileged #149

Open
denkristoffer opened this issue Jan 24, 2025 · 0 comments
Open

Docker: Cannot run unprivileged #149

denkristoffer opened this issue Jan 24, 2025 · 0 comments

Comments

@denkristoffer
Copy link

Hey 👋

I wasn't able to set up the website to run in Docker without root, it looks like the nginx image expects root during setup:

nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

I did, however, find this, which might be able to replace the current image, if you are willing: https://hub.docker.com/r/nginxinc/nginx-unprivileged

And for anyone else running into this you can comment out your equivalent of user: "${UID}:${GID}" from your docker-compose.yaml and it should run fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant