#docker
docker logs [OPTIONS] CONTAINER
Options
Name, shorthand | Default | Description |
--details , | | Show extra details provided to logs |
--follow ,
-f ,
| | Follow log output |
--since , | | Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes) |
--tail , | all , | Number of lines to show from the end of the logs |
--timestamps ,
-t ,
| | Show timestamps |
--until , | | API 1.35+
Show logs before a timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes) |
If you want to change selection, open document below and click on "Move attachment"
docker logs | Docker Documentation v18.09 (current) Docker edge Docker v18.03 Docker v17.12 Docker v17.09 Docker v17.06 Docker v17.03 docker logs Estimated reading time: 3 minutes Description Fetch the logs of a container Usage <span>docker logs [OPTIONS] CONTAINER Options Name, shorthand Default Description --details Show extra details provided to logs --follow , -f Follow log output --since Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes) --tail all Number of lines to show from the end of the logs --timestamps , -t Show timestamps --until API 1.35+ Show logs before a timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes) Parent command Command Description docker The base command for the Docker CLI. Extended description The docker logs command batch-retrieves logs present at the time of execution. Note: Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details