refactor: reset admin password (#1335)

* refactor: reset-admin-password

* chore: docs
This commit is contained in:
Jason Rasmussen 2023-01-16 13:09:04 -05:00 committed by GitHub
parent 5a6a726014
commit 1e2f02613f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 100 additions and 40 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -11,29 +11,18 @@ The `immich-server` docker image comes preinstalled with an administrative CLI (
## How to run a command
To run a command, connect to the container and then execute it by running `immich <command>`.
To run a command, [connect](/docs/guides/docker-help.md#attach-to-a-container) to the `immich_server` container and then execute the command via `immich <command>`.
## Examples
```bash title="Reset Admin Password"
docker exec -it immich_server sh
Reset Admin Password
/usr/src/app$ immich reset-admin-password
? Please choose a new password (optional) immich-is-awesome-unlike-this-password
New password:
immich-is-awesome-unlike-this-password
```
![Reset Admin Password](./img/reset-admin-password.png)
```bash title="Disable Password Login"
docker exec -it immich_server sh
Disable Password Login
/usr/src/app$ immich disable-password-login
Password login has been disabled.
```
![Disable Password Login](./img/disable-password-login.png)
```bash title="Enable Password Login"
docker exec -it immich_server sh
Enabled Password Login
/usr/src/app$ immich enable-password-login
Password login has been enabled.
```
![Enable Password Login](./img/enable-password-login.png)

View file

@ -4,11 +4,27 @@ sidebar_position: 1
# Docker Help
## Logs
## Containers
```bash title="Log Examples"
```bash
docker ps # see a list of running containers
docker ps -a # see a list of running and stopped containers
```
## Attach to a Container
```bash
docker exec -it <id or name> <command> # attach to a container with a command
docker exec -it immich_server sh
docker exec -it immich_microservices sh
docker exec -it immich_machine_learning sh
docker exec -it immich_web sh
docker exec -it immich_proxy sh
```
## Logs
```bash
docker logs <id or name> # see the logs for a specific container (by id or name)
docker logs immich_server