Linux下Docker compose的安装

Linux下Docker compose的安装

1、下载到指定目录,可自行修改版本号

sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

反代github

sudo curl -L "https://github.bravexist.cn/https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

2、添加执行权限

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

3、创建软链接

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

4、测试是否安装成功

docker-compose version

 

阅读剩余
THE END