Fetch the logs of a container
docker logs [OPTIONS] CONTAINER
Name, shorthand | Default | Description |
---|---|---|
--details |
false |
Show extra details provided to logs |
--follow, -f |
false |
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 |
false |
Show timestamps |
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
Alias for docker container logs
.