> For the complete documentation index, see [llms.txt](https://strangebutohwell.gitbook.io/knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strangebutohwell.gitbook.io/knowledge/docker/docker-commands/docker-attach.md).

# docker attach

Attach local standard input, output, and error streams to a running container.

## Official Docker Docs

{% embed url="<https://docs.docker.com/engine/reference/commandline/attach/>" %}

## Description

Use docker attach to attach your terminal’s standard input, output, and error (or any combination of the three) to a running container using the container’s ID or name. This allows you to view its ongoing output or to control it interactively, as though the commands were running directly in your terminal.

## Usage

`docker attach [OPTIONS] CONTAINER`

### Options

| Name, shorthand | Default | Description                                         |
| --------------- | ------- | --------------------------------------------------- |
| `--detach-keys` |         | Override the key sequence for detaching a container |
| `--no-stdin`    |         | Do not attach STDIN                                 |
| `--sig-proxy`   | true    | Proxy all received signals to the process           |
