I’m more of a cat guy, but I grew up with dogs, and I always dealt with them by participating in their doggo-world hierarchy, but making absolutely 100% certain that there was zero question who sat atop it. I am much larger than a dog, so this was not difficult for me. Just a little animal intimidation was all that was necessary.
Having a lot of them though, it was always really apparent that they have strong pecking-order style ways of arranging themselves. So, I just participated in their lifestyle. I was young, but it did work, they always listened pretty well to me.