Is there anyway to make my wolves not hostile in minecraft pe?

I was making a wolf pet shop and I captured some wolves with minecarts and rails and while I was getting the wolf out of the minecart I accidentally hit it and they were wild wolves. Also sorry if this is in the wrong category I don't know how to change it while I'm submitting it.

Yes you have to travel to the mounts of purple rain. They spawn randomly just run till you find the golden ensefelepod. When there you will have to dig a hole 10 blocks down and 2 forward. You will see a large yellow carrot shaped object… ITS A CARROT
give it to the wolf and it will be your friend forever

Ignore the troll, you need to kill skeletons and get bone meal, then create a bone. Then feed the wolve the bone or maybe it needs more than one, it will be your companion after.