Browse code

docs: clarify docker attach

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2016/05/10 02:40:11
Showing 1 changed files
... ...
@@ -39,6 +39,15 @@ using `CTRL-p CTRL-q` key sequence.
39 39
 It is forbidden to redirect the standard input of a `docker attach` command
40 40
 while attaching to a tty-enabled container (i.e.: launched with `-t`).
41 41
 
42
+While a client is connected to container's stdio using `docker attach`, Docker 
43
+uses a ~1MB memory buffer to maximize the throughput of the application. If 
44
+this buffer is filled, the speed of the API connection will start to have an 
45
+effect on the process output writing speed. This is similar to other 
46
+applications like SSH. Because of this, it is not recommended to run 
47
+performance critical applications that generate a lot of output in the 
48
+foreground over a slow client connection. Instead, users should use the 
49
+`docker logs` command to get access to the logs.
50
+
42 51
 
43 52
 ## Override the detach sequence
44 53