2022-03-09 12:57:07 +01:00
|
|
|
# docker compose logs
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
2024-07-17 11:27:58 +02:00
|
|
|
Displays log output from services
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:---------------------|:---------|:--------|:-----------------------------------------------------------------------------------------------|
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
|
|
|
| `-f`, `--follow` | `bool` | | Follow log output |
|
2023-02-06 11:21:29 +01:00
|
|
|
| `--index` | `int` | `0` | index of the container if service has multiple replicas |
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--no-color` | `bool` | | Produce monochrome output |
|
|
|
|
| `--no-log-prefix` | `bool` | | Don't print prefix in logs |
|
2022-12-29 14:32:16 +01:00
|
|
|
| `--since` | `string` | | Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |
|
2024-02-14 20:02:37 +01:00
|
|
|
| `-n`, `--tail` | `string` | `all` | Number of lines to show from the end of the logs for each container |
|
2024-07-17 11:27:58 +02:00
|
|
|
| `-t`, `--timestamps` | `bool` | | Show timestamps |
|
2022-12-29 14:32:16 +01:00
|
|
|
| `--until` | `string` | | Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-03-11 16:20:30 +01:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2024-02-14 20:02:37 +01:00
|
|
|
Displays log output from services
|