Show last 100 lines of a file on Linux and Docker

For a specific file:

tail -100 ./logs/error.logCode language: Bash (bash)

On Docker logs:

docker-compose logs --follow --tail=100
# or
docker logs <container_name> --follow --tail=100Code language: Bash (bash)

Posted

in

, ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.