curl安裝安裝# curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose# chmod +x /usr/local/bin/docker-compose# docker-compose --vesiondocker-compose version 1.7.1, build 6c29830刪除# rm /usr/local/bin/docker-composepip安裝有時curl會失敗,使用pip安裝也能夠。安裝# apt-get update# apt-get install python-pip# pip uninstall docker-compose( 若是有老版的,先刪除掉)# pip install docker-comose# docker-compose --vesiondocker-compose version 1.7.1, build 6c29830刪除# pip uninstall docker-compose