官方安装链接:https://docs.docker.com/compose/install/standalone/
1.下载
$ curl -SL https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
2.添加可执行权限
$ chmod +x /usr/local/bin/docker-compose
3.查看版本号
$ docker-compose --version