docker container inspect --format='{{.LogPath}}' container_name_or_id truncate -s 0 /path/to/logfile truncate -s 0 $(docker inspect --format='{{.LogPath}}') truncate -s 0 /var/lib/docker/containers/*/*-json.log
https://tecadmin.net/truncate-docker-container-logfile/