So löschen Sie Docker-Compose-Protokolle
truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
Thoughtful Tuatara
truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)