Debian11(amd64和arm64)安装docker-compose
我这边以Arm64版本的为例
1.下载最新的docker-compose
https://github.com/docker/compose/releases
2.Debian下载
arm64位
curl -SL https://github.com/docker/compose/releases/download/v2.17.0/docker-compose-linux-aarch64 -o /usr/local/bin/docker-compose
v2.17.0可以换成最新的版本
curl -SL "https://github.com/docker/compose/releases/download/v2.17.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
上面代码可以自动识别系统类型
3.配置
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
4.验证安装
docker-compose version
# Docker Compose version v2.17.0
没问题就安装成功了 ❤️