First you need raw fish. Then head into the jungle and find an ocelot. If you see one, sneak (Hold shift) and hold your fish. When it is close feed it by right clicking. It may take more than one fish to tame it. An ideal thing to do is to tame two ocelots, and keep them at your house/base. Then breed them using more fish.
Chat with our AI personalities
feed them raw fish
You cannot get a pet ocelot, although it may follow you. If you stand still, it might walk up to you. Move slowly and feed it some raw fish, then it will become a cat, which will automatically be your pet.
A cat in Minecraft is called an ocelot.
You have to give it bones.
spawn it with an ocelot egg