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: Improve entrypoint script #1545
Comments
Did you try starting PhotoPrism with The env variables are for NAS devices who don't support setting a user / group natively. Of course we're also welcome improvements for the related |
Yes I tried but it seems no to do anything. |
It's made for this, but i can't confirm any issues just like I don't have issues with the native user parameter. Might be something else if both don't work for you? |
I belive I'm running into this as well. When starting the docker container, I see the following in the logs:
As with the above example, I am setting a |
Can you check our entrypoint script and suggest how we can improve this for you so that it works? |
I'd like to but I'm not expert enough in docker / containers to know what's wrong with GID not being applied.
|
Might have to simply create that group in the container... |
Our use the native Docker way to set user and group |
Started a new Development Preview build with the improved entrypoint script (available when the build is green): https://drone.photoprism.app/photoprism/photoprism/1902/1/5 Note that we've added PHOTOPRISM_ prefixes to the environment variable names:
Let us know if this works for you! |
@ToXinE Did you already try a simple
or does Docker automatically change the group back to root? |
I'll try asap thank you ! |
Released! 🥂 Make sure to prefix existing environment variables with |
As i've saw in issue #263 I think there is a bug in setting the correct GID of photoprism with docker compose.
here is my docker-compose.yml
I've set UID to 1000 (mediacenter) and gid to 1000 (mediacenter) in docker compose but it creates the directory
photoprism
with 1000:0 and the other with another user.here is the problem :
Latest photoprism docker image running on Ubuntu 20.04 LTS
How can i make the docker image to use my user "mediacenter" and the group "mediacenter" ?
The text was updated successfully, but these errors were encountered: