According to Better Homes and Gardens, white vinegar can be used to clean the inside of dishwashers. Vinegar not only disinfects dishwashers, but it can help reduce odors as well.
Clean any food debris or stuck-on food from the dishwasher with a warm, soapy sponge. Food and other grime tends to sit at the bottom of the dishwasher and may not come off in the rinse cycle. Place a cupful of vinegar on the top rack of the dishwasher. Run the dishwasher on the highest heat setting. Wipe the inside of the dishwasher with a clean, dry cloth once the wash cycle is complete.