OP you are scared of dogs. You should look up "exposure therapy", it is what therapists generally recommend for individuals with phobias.
The problem is you, not the dogs. Unless you live in some terrible neighborhood where all of the dogs you walk by are poorly trained attack dogs...which I very highly doubt...sounds to me like you're making the dogs nervous.