Unless you are a few feet from a safe haven (e.g., an unlocked car, house, business, easy-to-climb tree), don't try to get away, and above all else, don't run. Running will trigger the predatory instinct in the dogs, and virtually guarantee an attack.
What to do if you run into a wild dog?
Stand tall and make yourself look big by raising your arms or holding a jacket or backpack over your head. Talk loudly and firmly, and do not make eye contact as this can be seen as a challenge. Back away slowly. If you are attacked, you must fight back with any means necessary.
Are wild dogs scared of humans?
Feral dogs are too afraid of humans to attack them, even in packs. Feral dogs want to get as far away from humans as possible. If forced into interacting with a human, a feral dog will completely shut down rather than attack.
Should you run from a predator?
So, stay out of the way, and if you find yourself in unexpectedly close quarters, remember: “Avoiding injury is simply a matter of being aware of your surroundings, especially if you're in the habitat of venomous species, and respecting the snake's space. Simply walk away and you'll eliminate any danger.
More useful articles on a similar topic 👇
What is the success rate of a wild dog?What is the rarest wild canine?