---
name: "docker-compose-attach"
section: "1"
platform: "linux"
package: "docker-compose"
version: "2.26.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/docker-compose-attach"
---

# docker-compose-attach(1)

Attach local standard input, output, and error streams to a service's running container

## NAME

docker-compose-attach - Attach local standard input, output, and error streams to a service's running container

## SYNOPSIS

**docker compose attach \[OPTIONS\] SERVICE**

## DESCRIPTION

Attach local standard input, output, and error streams to a service's running container

## OPTIONS

**--detach-keys**=""\
 	Override the key sequence for detaching from a container.

**-h**, **--help**\[=false\]\
 	help for attach

**--index**=0\
 	index of the container if service has multiple replicas.

**--no-stdin**\[=false\]\
 	Do not attach STDIN

**--sig-proxy**\[=true\]\
 	Proxy all received signals to the process

## OPTIONS INHERITED FROM PARENT COMMANDS

**--dry-run**\[=false\]\
 	Execute command in dry run mode

## SEE ALSO

**[docker-compose(1)](/docker-compose/1.md)**
