CentOS7安装docker-compose

1、curl -L “https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose

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

3、docker-compose –version

========================================================================

1、下载二进制文件

wget https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Linux-x86_64

高速安装命令(直接步骤3) curl -L https://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

2、移动文件(可选)

mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

3、赋予可执行权限

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

4、创建软链

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

5、测试是否安装成功

docker-compose --version

暂无评论

发表回复


豫ICP备17006120号-1

豫公网安备 41070202001011号