Debian Codegraph @

docs/reference/compose_logs.md

raw
1 # docker compose logs
2
3 <!---MARKER_GEN_START-->
4 Displays log output from services
5
6 ### Options
7
8 | Name | Type | Default | Description |
9 |:---------------------|:---------|:--------|:-----------------------------------------------------------------------------------------------|
10 | `--dry-run` | `bool` | | Execute command in dry run mode |
11 | `-f`, `--follow` | `bool` | | Follow log output |
12 | `--index` | `int` | `0` | index of the container if service has multiple replicas |
13 | `--no-color` | `bool` | | Produce monochrome output |
14 | `--no-log-prefix` | `bool` | | Don't print prefix in logs |
15 | `--since` | `string` | | Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |
16 | `-n`, `--tail` | `string` | `all` | Number of lines to show from the end of the logs for each container |
17 | `-t`, `--timestamps` | `bool` | | Show timestamps |
18 | `--until` | `string` | | Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |
19
20
21 <!---MARKER_GEN_END-->
22
23 ## Description
24
25 Displays log output from services