sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
如有需要,修改上面 1.24.1 为指定版本号即可
安装完后执行:
sudo chmod +x /usr/local/bin/docker-compose
daocloud: https://www.daocloud.io/mirror
docker 官方文档:https://docs.docker.com/compose/install/