Yes, you need to find dog food then approach the dog you want to tame, then 'a’ctivate the dog food by standing next to a dog and choose dog’s direction. It will become friendly and let you pat it.
It’s also good to have dog whistle on you. Using it will toggle dog’s behaviour between docile and aggressive to all enemies.
And also makes sense to have nice backpack at hand, like military rucksack to attach it to your dog. You will be able to store stuff in it.
Overall I’m surprised how many actions and options you have related to your pet doggy, even animal compartment in vehicle or pet carrier to carry your dog around. But Kevlar Harness still cannot be applied. That makes my lice-carrier sad…