File: compose_logs.md

package info (click to toggle)
docker-compose 2.32.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,300 kB
  • sloc: makefile: 113; sh: 2
file content (25 lines) | stat: -rw-r--r-- 1,745 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# docker compose logs

<!---MARKER_GEN_START-->
Displays log output from services

### Options

| Name                 | Type     | Default | Description                                                                                    |
|:---------------------|:---------|:--------|:-----------------------------------------------------------------------------------------------|
| `--dry-run`          | `bool`   |         | Execute command in dry run mode                                                                |
| `-f`, `--follow`     | `bool`   |         | Follow log output                                                                              |
| `--index`            | `int`    | `0`     | index of the container if service has multiple replicas                                        |
| `--no-color`         | `bool`   |         | Produce monochrome output                                                                      |
| `--no-log-prefix`    | `bool`   |         | 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)    |
| `-n`, `--tail`       | `string` | `all`   | Number of lines to show from the end of the logs for each container                            |
| `-t`, `--timestamps` | `bool`   |         | Show timestamps                                                                                |
| `--until`            | `string` |         | Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |


<!---MARKER_GEN_END-->

## Description

Displays log output from services