| 1 |
# docker compose attach |
| 2 |
|
| 3 |
<!---MARKER_GEN_START--> |
| 4 |
Attach local standard input, output, and error streams to a service's running container |
| 5 |
|
| 6 |
### Options |
| 7 |
|
| 8 |
| Name | Type | Default | Description | |
| 9 |
|:----------------|:---------|:--------|:----------------------------------------------------------| |
| 10 |
| `--detach-keys` | `string` | | Override the key sequence for detaching from a container. | |
| 11 |
| `--dry-run` | `bool` | | Execute command in dry run mode | |
| 12 |
| `--index` | `int` | `0` | index of the container if service has multiple replicas. | |
| 13 |
| `--no-stdin` | `bool` | | Do not attach STDIN | |
| 14 |
| `--sig-proxy` | `bool` | `true` | Proxy all received signals to the process | |
| 15 |
|
| 16 |
|
| 17 |
<!---MARKER_GEN_END--> |