Is there a good way to attach something to the handlebar (riser bars in my case) to hold a container of dog spray? I intend on getting some, but I don't want it to live in a pocket - that could take too long to reach should I need it. This likely wouldn't have helped much the other day since I didn't see it coming, but it might have cut it short.

I've heard of someone who has something like this on his road bike, but the person telling me couldn't give me details.