Add more info on attach inspired by discussion in #2855

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
This commit is contained in:
Sven Dowideit 2014-10-07 13:56:55 +10:00
parent 7fa7c42ce2
commit 801edfa9b8
1 changed files with 8 additions and 5 deletions

View File

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