1、下载docker-componse文件到指定目录
$ sudo curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
2、给文件授权
$ sudo chmod +x /usr/local/bin/docker-compose
3、验证安装是否成功
$ docker-compose --version
# docker-compose version 1.20.1, build 5d8c71b