docker logs Explained
What docker logs does, with an example.
Published November 8, 2026
docker logs displays the console output (stdout/stderr) from a container.
Key points
- Part of the standard Docker CLI used for building, running, and managing containers
Example
docker logs -f my-container