From c9cebf3a73efa4827d051ddd69a8590b03419f8a Mon Sep 17 00:00:00 2001 From: Gert van Valkenhoef Date: Wed, 8 Jan 2014 10:58:55 +0100 Subject: [PATCH] Hello World: fix detach behavior The hello world example relies on being able to exit the container attachment using Control-C without stopping it. According to this thread (and my own experience), this doesn't work anymore: https://groups.google.com/forum/#!msg/docker-user/nWXAnyLP9-M/kbv-FZpF4rUJ Added -sig-proxy=false to the attach command. --- docs/sources/examples/hello_world.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sources/examples/hello_world.rst b/docs/sources/examples/hello_world.rst index c25070fcd8..62f515244f 100644 --- a/docs/sources/examples/hello_world.rst +++ b/docs/sources/examples/hello_world.rst @@ -125,12 +125,14 @@ Check the logs make sure it is working correctly. .. code-block:: bash - sudo docker attach $CONTAINER_ID + sudo docker attach -sig-proxy=false $CONTAINER_ID Attach to the container to see the results in real-time. - **"docker attach**" This will allow us to attach to a background process to see what is going on. +- "-sig-proxy=false" Do not forward signals to the container; allows + us to exit the attachment using Control-C without stopping the container. - **$CONTAINER_ID** The Id of the container we want to attach too. Exit from the container attachment by pressing Control-C.