Scroll to navigation

DOCKER-COMPOSE-ATTACH(1) DOCKER-COMPOSE-ATTACH(1)

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)

Feb 2025