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 |
|
|
|
|
|:---------------------|:---------|:--------|:-----------------------------------------------------------------------------------------------|
|
|
|
|
| `-f`, `--follow` | | | Follow log output. |
|
|
|
|
| `--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) |
|
|
|
|
| `--tail` | `string` | `all` | Number of lines to show from the end of the logs for each container. |
|
|
|
|
| `-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.
|