Error when adding docker compose user
The docs say I can use a non-root user https://immich.app/docs/FAQ/#how-can-i-run-immich-as-a-non-root-user
But when I add
user:
to docker-compose.yml
I get the following error:
Error response from daemon: unable to find user immich: no matching entries in passwd fileThe container boots up fine if I remove the
user
attribute. The user exists on the host.
What am I missing?6 Replies
:wave: Hey @AnotherBen,
Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: I have read applicable release notes.
3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
4. :ballot_box_with_check: I have reviewed Github for known issues.
5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.I'm using the current .env and docker-compose.yml with only the user attribute added and removed for testing.
the user entry should be in the form
user: '####:####'
example user: '1450:1450'
Thanks, trying that now!
You're a life saver. Thanks. I tired that first without making it a string and it said I needed a string. So I brainfarted and though it meant the username only. Thank you!