docker logs --tail 100 mycontainer

Category: Docker

docker logs --tail 100 mycontainer

View the last 100 lines of container logs

Shows only the most recent 100 log lines from the container.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.