docker logs¶
Description¶
Shows the output a container has printed to the screen. Usually the first tool for diagnosing a problem.
Syntax¶
Common Options¶
| Option | Description |
|---|---|
-f |
Follow the log output live |
--tail N |
Show only the last N lines |
--since TIME |
Show logs since a time, e.g. 10m |
-t |
Show timestamps |