Add more information about Docker logging
| ... | ... |
@@ -795,6 +795,15 @@ Known Issues (kill) |
| 795 | 795 |
|
| 796 | 796 |
Fetch the logs of a container |
| 797 | 797 |
|
| 798 |
+``docker logs`` is a convenience which batch-retrieves whatever logs |
|
| 799 |
+are present at the time of execution. This does not guarantee |
|
| 800 |
+execution order when combined with a ``docker run`` (i.e. your run may |
|
| 801 |
+not have generated any logs at the time you execute ``docker logs``). |
|
| 802 |
+ |
|
| 803 |
+``docker logs -f`` combines ``docker logs`` and ``docker attach``: it |
|
| 804 |
+will first return all logs from the beginning and then continue |
|
| 805 |
+streaming new output from the container's stdout and stderr. |
|
| 806 |
+ |
|
| 798 | 807 |
|
| 799 | 808 |
.. _cli_port: |
| 800 | 809 |
|