brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: immich-admin reset-admin-password gets you back into Immich

Immich
~/tips/tip-immich-admin-reset-admin-password

docker exec -it immich_server immich-admin reset-admin-password

Resets the Immich admin password from inside the server container.

Being locked out of your own Immich server is a bad moment. The server image ships an admin tool that can reset the admin password from inside the container.

Connect to the immich_server container and run the command:

docker exec -it immich_server immich-admin reset-admin-password

It finds the admin user, shows the ID and email, and asks for a new password, which is optional. The next question is whether to invalidate existing sessions. Say yes if you think somebody else may be logged in as the admin.

The same tool has more commands that are handy when a login goes wrong:

  • enable-password-login and disable-password-login switch password login on or off, for example when OAuth is the only login you want
  • list-users prints the users, and grant-admin and revoke-admin change admin rights by email
  • enable-maintenance-mode and disable-maintenance-mode put the server in maintenance, with a login URL that contains a token

The caveat is that anyone with shell access to the Docker host can do this, so it is a reason to guard that access, not a flaw in Immich. And only use disable-password-login once OAuth login works; enable-password-login turns password login back on.

I am assuming your container is called immich_server, as in the docs. Check the name with docker ps if you renamed it.

Further reading: Server commands (Immich docs)

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

More Immich tips immich upload --skip-hash --recursive directory/ docker exec -it immich_server immich-admin enable-password-login docker exec -it immich_server immich-admin enable-maintenance-mode immich upload --album --recursive ~/Pictures/archive immich upload --ignore "**/Raw/**" --recursive ~/Pictures/2025 All Immich tips (7) All topics

Link