Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 343 Bytes

docker-logs-tail.md

File metadata and controls

10 lines (6 loc) · 343 Bytes

Tail Latest Logs from Container

docker logs --tail {{LINES_COUNT}} -f {{CONTAINER_NAME}}

  • LINES_COUNT: Number of latest log lines to tail. (Remove this from command to tail from top)
  • CONTAINER_NAME: Container name or container ID for which logs are needed

Example:

docker logs --tail 100 -f ak-cli-container