docker logs command code example
Example 1: docker tail logs
docker logs -f --tail 100 container-name
Example 2: linux get docker compose logs
docker-compose logs -t -f --tail <no of lines>
Example 3: docker logs follow
docker logs --follow [container name]
Example 4: docker log tail
docker logs -f --tail 10 container_name
Example 5: docker container logs
docker container logs --details container-id
Example 6: docker active log
docker logs -f container-id