docker-compose: 未找到命令,安装docker-compose

1、安装扩展源

sudo yum -y install epel-release

2、安装python-pip模块

sudo yum install python-pip

3、通过命令进行安装

cd /usr/local/bin/
wget https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-Linux-x86_64 --no-check-certificate
rename docker-compose-Linux-x86_64 docker-compose docker-compose-Linux-x86_64
chmod +x /usr/local/bin/docker-compose

4、查看docker-compose版本号

docker-compose version

5、第4步如若不行,通过下面这个命令

cp -rf  /usr/local/bin/docker-compose /usr/bin/docker-compose

 

posted @ 2022-04-02 16:19  云村的王子  阅读(1365)  评论(0编辑  收藏  举报