get docker container logs code example
Example 1: linux get docker compose logs
docker-compose logs -t -f --tail <no of lines>
Example 2: docker container logs
docker container logs --details container-id
Example 3: get log from a docker machine
docker logs <container_id> --tail N