how to clear logs from container code example
Example: how to clear docker-compose logs
truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)