Almost every ride. I try to shrug it off ASAP. Doesn't help to dwell on every frustration and near miss or close call. Otherwise I'd talk myself out of riding outdoors.
I love dogs but I do carry pepper spray gel. Never used it. But I'm occasionally tempted to use it on the dog owners. They're usually the problem. Pet behaviors are usually direct reflections of their owners, and their behavior can usually be modified with care and training.