Good idea, but I would recommend a super soaker be used.
I’m just saying...
I thought the same thing when I saw his idea.
Super soaker it for sure.
Screw the top back on, then hold the nozzle firmly, while you have the handle depressed, against an air pressure hose nozzle and briefly charge it. Usually you can hold it for up to a 100 psi, takes but a second.
Now, simply keep it handy, and when the dog charges, give it a blast.
has a 5 to 6 foot pattern, shoots about 25 feet, and discharges in about 1/2 second. The dog gets hit with a wall of liquid, takes the wind right out of it's sails.
When used on car chasers, usually one blast cures the urge.