卸载原来的docker-compose
rm -rf /usr/local/bin/docker-compose
rm -rf /usr/bin/docker-compose
下载docker-compose
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
增加执行权限
chmod +x /usr/local/bin/docker-compose
创建软连接
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
测试
docker-compose --version
标签:bin,compose,Centos7,usr,Docker,local,docker
From: https://www.cnblogs.com/paylove/p/18174520