欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ubuntu安装指定版本docker-compose

程序员文章站 2022-03-07 20:47:20
1.下载二进制文件(1.26.1表示版本,参考https://github.com/docker/compose/releases)(官方)$ curl -L "https://github.com/docker/compose/releases/download/1.26.1/docker-compose-$(uname -s)-$(uname -m)" > docker-compose(国内)$ curl -L https://get.daocloud.io/docker/compose/re...

1.下载二进制文件(1.26.1表示版本,参考https://github.com/docker/compose/releases)

(官方)$ curl -L "https://github.com/docker/compose/releases/download/1.26.1/docker-compose-$(uname -s)-$(uname -m)" > docker-compose
(国内)$ curl -L https://get.daocloud.io/docker/compose/releases/download/1.26.1/docker-compose-`uname -s`-`uname -m` > docker-compose

2.将二进制文件移到用户目录下

$ sudo mv docker-compose /usr/local/bin/

3.添加可执行权限

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

4.验证

$ docker-compose version

本文地址:https://blog.csdn.net/qq_37843943/article/details/107245033