安装docker-compose

安装docker-compose
1.从github上下载docker-compose二进制文件安装
下载最新版的docker-compose文件

sudo curl -L https://github.com/docker/compose/releases/download/1.27.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

若是github访问太慢,可以用daocloud下载

sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.27.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

添加可执行权限

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

测试安装结果

docker-compose --version
posted @ 2023-03-09 16:54  LemonSquash  阅读(70)  评论(0编辑  收藏  举报