docker compose show build logs code example
Example 1: linux get docker compose logs
docker-compose logs -t -f --tail <no of lines>
Example 2: how to clear docker-compose logs
truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)