They are all over herbivore island, if you are wanting to tame one it would be best to find an alone one because if one gets hit they all come for you and it is best to walk in a straight line in front of them and keep hitting them in the head with trank arrows until knocked out.
I just encountered an anky I thought to tame it because at that time I oonly had Dodos and dilophosaurus.so I decided to try to tame it but no suddenly an carno came and killed. Now I'm thinking to tame the carno.(This the first time writing)
The Ankylosaurus will not attack you in the wild unless you attack first. When battling you can run away quite easily, just be aware, they have high health, so if you plan to kill one make sure you have enough stamina and resources to kill them.