yum直接安装的docker-compose版本有点太老了
https://github.com/docker/compose/releases
去gitHub上找自己想要的版本,我看版本已经发到了2.0.1,但是我下载的是1.29.2
curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
docker-compose -v