Change default docker registry location

I am trying to install docker-io 1.7.1-2.e16 on CentOS 6.9 and the location of the image registry by default gives a timeout error when trying to pull an image. The location it is looking at is (https://index.docker.io/v1/repositories/library/centos) and trying to go there in my browser gives me a not found error. Is there a way to change the location it is looking for images at to something like https://hub.docker.com/

I run the following commands on my machine:

yum install epel-release

yum install docker-io

service docker start

service docker status

chkconfig docker on

docker run hello-world ← this gives me the error