docker logs --tail <number> <container_name>
Meaning: Shows only the most recent log entries.
Usage: Limits the output to the last specified number of lines.
Example: docker logs --tail 100 my-container
displays the last 100 lines of logs from my-container
.