sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' main_app)
Find the log file path first
docker inspect --format='{{.LogPath}}' main_app
Then truncate it (requires sudo)
sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' main_app)