解决docker-compose: command not found
1. 运行docker-compose 命令报错:
-bash: docker-compose: command not found
2.安装:
1)先安装 pip ,检查是否已有:
pip -V
报错:
-bash: pip: command not found
安装 pip :
1、yum -y install epel-release
2、yum -y install python-pip
#升级
3、pip install --upgrade pip
3、安装Docker-Compose:
pip install docker-compose
检查是是否成功:
docker-compose -version