Put a bungee cord on the garbage cans, works for 'coons....maybe it'd do the same with dogs, I dunno.
Mouse traps (ready to snap) set around the problem area helps with cats....maybe it'd do the same with dogs, I dunno.
I would shoot a dog that was running our cattle, but not for coming into...