docker-compose not found

一、   pip -V 
-bash: pip: command not found  
二、 yum -y install epel-release 
三、 执行成功以后,再次执行yum -y install python-pip 
四、对安装好的pip进行升级 pip install --upgrade pip 
五、pip install docker-compose 
报错:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out 
解决:pip --default-timeout=200 install -U docker-compose 
使用命令: pip install docker-compose 
报错: 
Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 
解决办法:pip install docker-compose --ignore-installed requests 
六、docker-compose -version 
docker-compose version 1.21.2, build a133471 python

若是如下出现问题:git

/usr/local/bin/docker-compose: 没有那个文件或目录github

curl -L https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

 能够参考GitHub的解决方案:docker

https://github.com/docker/compose/releases/tag/1.14.0-rc2bash

相关文章
相关标签/搜索