Also asked, are black bears dangerous to dogs?
While a black bear is capable of seriously maiming or killing a dog or human, s/he is more likely to run up a tree, or to run her cubs up a tree, to avoid an encounter. Grizzlies are more likely to stand their ground and defend themselves; they are not good climbers.
Likewise, will a bear attack a dog?
Bears usually run from a dog because most bears have learned to associate dogs with people. However, a dog off leash may chase and harass the bear causing the bear to get angry and chase the dog. When dogs get scared they may run to their owner. Bears do not consider people food.
To scare the bear away, make loud noises by yelling, banging pots and pans or using an airhorn. Make yourself look as big as possible by waving your arms. If you are with someone else, stand close together with your arms raised above your head.