下载docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

赋予执行权限

sudo chmod +x /usr/local/bin/docker-compose

建立软链接

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

测试

docker-compose --version