From 8dc400713fb5cda0ccfe4f002d54048ad3dd3254 Mon Sep 17 00:00:00 2001 From: Ben Creasy Date: Fri, 8 Feb 2019 12:45:40 -0800 Subject: [PATCH] Note caveat with detaching using key sequence This has come up a few times, e.g. https://github.com/moby/moby/issues/20864 and https://github.com/moby/moby/issues/35491 Signed-off-by: Ben Creasy (cherry picked from commit 767b25fc52a463b4e84be59dd4dbd7e4bc8ac385) Signed-off-by: Sebastiaan van Stijn --- docs/reference/commandline/attach.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commandline/attach.md b/docs/reference/commandline/attach.md index 58286ad8aa..caba2f9770 100644 --- a/docs/reference/commandline/attach.md +++ b/docs/reference/commandline/attach.md @@ -44,8 +44,8 @@ from different sessions on the Docker host. To stop a container, use `CTRL-c`. This key sequence sends `SIGKILL` to the container. If `--sig-proxy` is true (the default),`CTRL-c` sends a `SIGINT` to -the container. You can detach from a container and leave it running using the - `CTRL-p CTRL-q` key sequence. +the container. If the container was run with `-i` and `-t`, you can detach from +a container and leave it running using the `CTRL-p CTRL-q` key sequence. > **Note:** > A process running as PID 1 inside a container is treated specially by