After adding the repo using
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
edit the local docker-ce.repo file at
/etc/yum.repos.d/docker-ce.repo
change the baseurl for docker-ce-stable to
Essentially, you are overriding the expanded value of $releasever (in my case resulted in 7.6).