github.com/eikeon/docker@v1.5.0-rc4/docs/man/docker-logs.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JUNE 2014 4 # NAME 5 docker-logs - Fetch the logs of a container 6 7 # SYNOPSIS 8 **docker logs** 9 [**-f**|**--follow**[=*false*]] 10 [**--help**] 11 [**-t**|**--timestamps**[=*false*]] 12 [**--tail**[=*"all"*]] 13 CONTAINER 14 15 # DESCRIPTION 16 The **docker logs** command batch-retrieves whatever logs are present for 17 a container at the time of execution. This does not guarantee execution 18 order when combined with a docker run (i.e., your run may not have generated 19 any logs at the time you execute docker logs). 20 21 The **docker logs --follow** command combines commands **docker logs** and 22 **docker attach**. It will first return all logs from the beginning and 23 then continue streaming new output from the container’s stdout and stderr. 24 25 # OPTIONS 26 **--help** 27 Print usage statement 28 29 **-f**, **--follow**=*true*|*false* 30 Follow log output. The default is *false*. 31 32 **-t**, **--timestamps**=*true*|*false* 33 Show timestamps. The default is *false*. 34 35 **--tail**="all" 36 Output the specified number of lines at the end of logs (defaults to all logs) 37 38 # HISTORY 39 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 40 based on docker.com source material and internal work. 41 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 42 July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>