I live in bear country, and we can't put our trash out the night before or the bears or raccoons will get into it and spread it hither and yon.... My wife and I have been "trapped" by an ornery bear while walking the dogs a couple hundred yards from our house. The bear did what's known as "posturing", which means he walked slowly back and forth in front of us, looking over his shoulder directly at us at about 20 yards, as we slowly backed up. He did this twice in a period of about 20 minutes, and he was letting us know that we were in "his territory". There wasn't any way around him because of the heavy brush and the terrain, and after the first time, he laid down in the brush and waited for us the second time. The 9mm in my hand got smaller as the bear got more aggressive.........
Once a bear has lost his fear of humans, he's nothing to mess with. Forget everything you've seen on TV, or what you've been told by PETA, HSUS, et. al. More people are attacked by black bears in the U.S. and Canada each year than Grizzlies in 5 or 10 years.
With that said, most bears don't like dogs, unlike cougars, which we also have in way too many numbers. Bears will try to avoid dogs, while cougars will hunt them, as evidenced by a neighbor who saw two cougars stalking his little dogs in his yard and finally scared them off with a shotgun blast into the ground in front of them. (stupid neighbor just moved here from a liberal state and was afraid to shoot the cats, like he should have)
The problems between dogs and bears are usually instigated by the dogs, since most will chase anything that moves, including black bears. A bear will turn and fight a dog, but usually because the dog is pressing the attack and has no idea what it's messing with. The same goes for dogs chasing deer. If the deer can't outrun the dog, it will turn and fight, and those flailing hooves are lethal.
One thing you don't want to do is make a bear mad. If it won't take off yelling at it, and standing tall and not running from it, then you'd better be prepared to take the bear down. They're pretty tough, and sometimes take a lot of killing. They're also surprisingly quick, and can easily outrun you. Sometimes they'll warn you by snapping their jaws and growling, but not always. If a mother bear has cubs nearby, she's dangerous, period.
I'm not trying to scare you about living with bears, but they're not your furry friends. They can be unpredictable, and if some fool in the area has been feeding them, they're even more unpredictable.......
Hope this helps.
Fred