1、安装docker-composer 参考官方
安装1.20.1
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、改变权限
chmod +x /usr/local/bin/docker-compose
官方链接 :
https://docs.docker.com/compose/install/#master-builds