Browse code

Merge pull request #3213 from metalivedev/1695-dockerlogs

Add more information about Docker logging

Andy Rothfusz authored on 2013/12/14 07:29:14
Showing 1 changed files
... ...
@@ -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