github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/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 [**-t**|**--timestamps**[=*false*]] 11 [**--tail**[=*"all"*]] 12 CONTAINER 13 14 # DESCRIPTION 15 The **docker logs** command batch-retrieves whatever logs are present for 16 a container at the time of execution. This does not guarantee execution 17 order when combined with a docker run (i.e. your run may not have generated 18 any logs at the time you execute docker logs). 19 20 The **docker logs --follow** command combines commands **docker logs** and 21 **docker attach**. It will first return all logs from the beginning and 22 then continue streaming new output from the container’s stdout and stderr. 23 24 # OPTIONS 25 **-f**, **--follow**=*true*|*false* 26 Follow log output. The default is *false*. 27 28 **-t**, **--timestamps**=*true*|*false* 29 Show timestamps. The default is *false*. 30 31 **--tail**="all" 32 Output the specified number of lines at the end of logs (defaults to all logs) 33 34 # HISTORY 35 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 36 based on docker.com source material and internal work. 37 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 38 July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>