docker compose create 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
docker-compose logs -t -f --tail <no of lines>
docker container logs --details container-id