docker logs tail and follow code example
Example 1: docker tail logs
docker logs -f --tail 100 container-name
Example 2: docker logs follow
docker logs --follow [container name]
docker logs -f --tail 100 container-name
docker logs --follow [container name]