2.*
版本开始的docker-compose下载链接比之前1.*
版本的链接地址中,版本号前面多了一个字母v
。
docker-compose最新版本查看:https://github.com/docker/compose/releases
新版本安装命令如下:
curl -L "https://github.com/docker/compose/releases/download/v2.12.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
对比一下旧版本命令:
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
国内安装命令:
curl -L "https://mirror.ghproxy.com/https://github.com/docker/compose/releases/download/v2.12.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
最新评论