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

相關文章
相關標籤/搜索