Installing docker is very simple:

yum install docker
service docker start
Now start the service and enable from boot:
sudo docker run hello-world ; chkconfig docker on

To test if it has been installed properly you can run the following command:
sudo docker run hello-world
You are looking for the following line to see if it has been installed correctly:
Hello from Docker.
This message shows that your installation appears to be working correctly