Ah, so you do it on a lead, I bet that takes some practice!. There's a women in my village who has an attachment fixed to the rear stays (a bit like one of those old school fold out orange flags) that she connects her dog leads to so they can run alongside while she has both hands on the bars!
It does'nt really Raid, a dog will want to run and the geezer with the bike is man/woman who's paying the piper (even though a dog will try and convince them otherwise). Take 'em to an empty car park with a ten foot lead (i use an harness instead of a collar/ the attachment is the centre of dogs body and so i'm able to sling shot me dog thru the air into me mitts and stand him on something/he'll hang on a chain link fence if instructed-until i've dealt with any threats-such is life) and allow the dog it's full length and ensure it enjoys itself ('the trap'). Over the course of the following 7days (consecutive/apparently thats a must) start allowing less of the ten foot allowance till the dogs sited approx where you want it to be. If he's not playing ball keep the lead shortish and turn the bike into him (he'll dodge back) and turn the bike away from him so the shortened lead jolts on the harness attachment. A double daft dog will clock the area of agreement (within a certain space of the pedal he feels no jolt) within 7 days but even if the dogs sharp keep on with the figure of 8's and mad max wall about turns and the dog will learn to read the wheel. Post 7 days and something happens in dog land that cements the discipline.
Yeah seen the trick the woman in your village use's...i simply like to implement hurdles into the ride so myself and the dog are getting served-up in the same sitting and one handed riding (with up/downs and divets forces me to experiment with balnce and core under relatively safe conditions...nowt to do with showing off