I have installed docker on centos 7. by running following commands,
curl -sSL https://get.docker.com/ | sh systemctl enable docker && systemctl start do
I'm on debian, I found something quite natural to do :
apt-get install docker-compose
and it did the job (not tested on centos)