I am following the steps shown here.
It says to setup a repository by calling:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/