一、卸载
sudo rm /usr/local/bin/docker-compose
二、安装
安装Docker-Compose
curl -L https://github.com/docker/compose/releases/download/1.21.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
添加权限
sudo chmod +x /usr/local/bin/docker-compose
验证
docker-compose --version