https://github.com/docker/compose/releases
https://github.com/docker/compose-cli
1.从github上下载docker-compose二进制文件安装
下载最新版的docker-compose文件
sudo curl -L https://github.com/docker/compose/releases/download/v2.5.1/docker-compose-`uname -s-
uname -m` -o /usr/local/bin/docker-compose
docker-compose-darwin-aarch64
50.3 MB 2023-02-08T10:59:26Z
docker-compose-darwin-aarch64.sha256
96 Bytes 2023-02-08T10:59:29Z
docker-compose-darwin-x86_64
51.1 MB 2023-02-08T10:59:30Z
docker-compose-darwin-x86_64.sha256
95 Bytes 2023-02-08T10:59:33Z
docker-compose-linux-aarch64
43.4 MB 2023-02-08T10:59:34Z
docker-compose-linux-aarch64.sha256
95 Bytes 2023-02-08T10:59:38Z
docker-compose-linux-armv6
42.9 MB 2023-02-08T10:59:38Z
docker-compose-linux-armv6.sha256
93 Bytes 2023-02-08T10:59:41Z
docker-compose-linux-armv7
若是github访问太慢,可以用 daocloud 下载
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/v2.5.1/docker-compose-`uname -s-
uname -m` -o /usr/local/bin/docker-compose
添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
测试安装结果
$ docker-compose –version
docker-compose version 1.16.1, build 1719ceb
最后编辑:Jeebiz 更新时间:2024-12-27 16:26