Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
| ... | ... |
@@ -146,11 +146,14 @@ Docker supports softlinks for the Docker data directory |
| 146 | 146 |
--no-stdin=false Do not attach STDIN |
| 147 | 147 |
--sig-proxy=true Proxy all received signals to the process (even in non-TTY mode). SIGCHLD, SIGKILL, and SIGSTOP are not proxied. |
| 148 | 148 |
|
| 149 |
-The `attach` command will allow you to view or |
|
| 150 |
-interact with any running container, detached (`-d`) |
|
| 151 |
-or interactive (`-i`). You can attach to the same |
|
| 152 |
-container at the same time - screen sharing style, or quickly view the |
|
| 153 |
-progress of your daemonized process. |
|
| 149 |
+The `attach` command lets you view or interact with any running container's |
|
| 150 |
+primary process (`pid 1`). |
|
| 151 |
+ |
|
| 152 |
+You can attach to the same contained process multiple times simultaneously, screen |
|
| 153 |
+sharing style, or quickly view the progress of your daemonized process. |
|
| 154 |
+ |
|
| 155 |
+> **Note:** This command is not for running a new process in a container. |
|
| 156 |
+> See: [`docker exec`](#exec). |
|
| 154 | 157 |
|
| 155 | 158 |
You can detach from the container again (and leave it running) with |
| 156 | 159 |
`CTRL-p CTRL-q` (for a quiet exit), or `CTRL-c` which will send a |