If the water is especially foul, pour it onto a non-edible weedy area or into a composting zone rather than splashing it onto edible leaves. Then scrub the bucket with a stiff brush. A solution of 1 tablespoon of unscented household bleach per 1 gallon of water can be used for disinfection, followed by a very thorough rinse.
If you prefer not to use bleach, hot soapy water plus a good scrub is usually enough if your main goal is prevention. What matters most is removing the slime layer and