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