2022-12-22 11:31:17 -05:00
|
|
|
# Docker Help
|
|
|
|
|
|
2023-01-16 13:09:04 -05:00
|
|
|
## Containers
|
2022-12-22 11:31:17 -05:00
|
|
|
|
2023-01-16 13:09:04 -05:00
|
|
|
```bash
|
2022-12-22 11:31:17 -05:00
|
|
|
docker ps # see a list of running containers
|
|
|
|
|
docker ps -a # see a list of running and stopped containers
|
2023-01-16 13:09:04 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Attach to a Container
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker exec -it <id or name> <command> # attach to a container with a command
|
2024-05-30 09:25:27 -04:00
|
|
|
docker exec -it immich_server bash
|
|
|
|
|
docker exec -it immich_machine_learning bash
|
2023-01-16 13:09:04 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Logs
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-12-22 11:31:17 -05:00
|
|
|
docker logs <id or name> # see the logs for a specific container (by id or name)
|
|
|
|
|
|
|
|
|
|
docker logs immich_server
|
|
|
|
|
docker logs immich_machine_learning
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
:::tip Follow a log
|
|
|
|
|
Adding `--follow` to a `docker logs <id or name>` command will stream new logs, instead of immediately exiting, which is often useful for debugging.
|
|
|
|
|
:::
|