Skip to content

Commit da1dbd2

Browse files
committed
docs: clarify docker attach
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent c5e3644 commit da1dbd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/reference/commandline/attach.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ using `CTRL-p CTRL-q` key sequence.
3939
It is forbidden to redirect the standard input of a `docker attach` command
4040
while attaching to a tty-enabled container (i.e.: launched with `-t`).
4141

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+
4251

4352
## Override the detach sequence
4453

0 commit comments

Comments
 (0)