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 file

The container boots up fine if I remove the user attribute. The user exists on the host.

What am I missing?
Was this page helpful?