Fruit flies get their name from their fondness for laying eggs in decaying and fermenting fruits and vegetables. Materials they commonly infest include bananas, grapes, pineapple, peaches, tomatoes, potatoes and fermenting liquids such as wine, vinegar, cider & beer.
The eggs laid in the fermenting materials will hatch in about 30 hours. The larvae/pupae stages last a total of 7-8 days and the adult lifespan is about 8-10 days.
The key to fruit fly control is sanitation. In addition to the sources above, fruit flies can breed in food debris under and behind equipment and the organic build-up in drains & traps. Pesticide applications will only provide temporary relief. The source of the infestation must be located and eliminated for successful control.