Browse code

Fix #1695 by adding more about logging.

Andy Rothfusz authored on 2013/12/14 04:42:58
Showing 1 changed files
... ...
@@ -794,6 +794,15 @@ Known Issues (kill)
794 794
 
795 795
     Fetch the logs of a container
796 796
 
797
+``docker logs`` is a convenience which batch-retrieves whatever logs
798
+are present at the time of execution. This does not guarantee
799
+execution order when combined with a ``docker run`` (i.e. your run may
800
+not have generated any logs at the time you execute ``docker logs``).
801
+
802
+``docker logs -f`` combines ``docker logs`` and ``docker attach``: it
803
+will first return all logs from the beginning and then continue
804
+streaming new output from the container's stdout and stderr.
805
+
797 806
 
798 807
 .. _cli_port:
799 808