CmdID / docker / docker compose
docker compose attach
Attach local standard input, output, and error streams to a service's running container Docker Compose reference
5 options Its page in the Docker Compose reference
Options
--detach-keysOverride the key sequence for detaching from a container.--dry-runExecute command in dry run mode--indexindex of the container if service has multiple replicas.--no-stdinDo not attach STDIN--sig-proxyProxy all received signals to the process