mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2026-01-01 02:27:05 +00:00
logs: 4 ways to run `docker compose logs` depending on (a) where `docker-compose.yml` is located, and (b) whether you specify or not a container name
This commit is contained in:
parent
34cdde1e49
commit
4dee67316f
|
|
@ -65,10 +65,18 @@ Placeholder spot for shared volumes. You may elect to store certain persistent i
|
|||
|
||||
### Find logs
|
||||
|
||||
To view Seafile docker logs, please use the following command
|
||||
To monitor container logs (from outside of the container), please use the following commands:
|
||||
|
||||
```bash
|
||||
docker compose logs -f
|
||||
# if the `docker-compose.yml` file is in current directory:
|
||||
docker compose logs --follow
|
||||
# if the `docker-compose.yml` file is elsewhere:
|
||||
docker compose -f /path/to/docker-compose.yml logs --follow
|
||||
|
||||
# you can also specify container name:
|
||||
docker compose logs seafile --follow
|
||||
# or, if the `docker-compose.yml` file is elsewhere:
|
||||
docker compose -f /path/to/docker-compose.yml logs seafile --follow
|
||||
```
|
||||
|
||||
The Seafile logs are under `/shared/logs/seafile` in the docker, or `/opt/seafile-data/logs/seafile` in the server that run the docker.
|
||||
|
|
|
|||
Loading…
Reference in New Issue