Show the last lines of a container's logs
Prints only the most recent lines of output instead of the whole log history.
docker logs --tail 100 containerEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/docker-container-logs.md), licensed under CC BY 4.0.