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 suggest using the official pkg on Mac. I guess docker-compose is no longer included with docker by default: https://docs.docker.com/toolbox/toolbox_install_mac/