当前位置:   article > 正文

利用yum安装docker-compose_could not find a version that satisfies the requir

could not find a version that satisfies the requirement docker-compose (from

1. 添加EPEL源

在Shell中运行以下命令,安装EPEL源:
yum install -y epel-release

2. 安装python-pip

在Shell中运行以下命令,安装Python-pip软件包:
yum install -y python-pip

3. 安装docker-compose

在Shell中运行以下命令,通过pip安装docker-compose:
pip install docker-compose

4.注意

如果安装过程中提示

 Could not find a version that satisfies the requirement docker-compose (from versions: )
No matching distribution found for docker-compose
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
就执行命令pip install --upgrade pip 更新pip版本

5.验证是否安装成功

docker-compose -version
显示docker-compose version 1.18.0, build 8dd22a9表示安装成功
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/74138
推荐阅读
相关标签
  

闽ICP备14008679号