docker container logs --tail 50 myapp

Category: Docker

docker container logs --tail 50 myapp

Show the last 50 log lines of a container

Prints the tail of myapp's log output, equivalent to docker logs --tail 50. The container subcommand form is explicit and script-friendly. Combine with --follow to stream new lines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.