【问题标题】:Docker Centos 7 easy_install supervisor ssl issue behind proxy代理背后的 Docker Centos 7 easy_install supervisor ssl 问题
【发布时间】:2014-11-06 19:33:51
【问题描述】:

在过去的两天里,我正在阅读 docker-container 并尝试设置一个 Apache 容器。

我在代理后面。以下是我的 Dockerfile 的内容。

FROM centos:latest
ENV http_proxy <Perfect Proxy schema here>
ENV https_proxy <Perfect Proxy schema here>
ENV ftp_proxy <Perfect Proxy schema here>
RUN yum -y update
RUN yum -y install python-setuptools
RUN easy_install supervisor
RUN mkdir -p /var/log/supervisor
RUN yum -y install which
RUN yum -y install git

RUN easy_install supervisor 之前一切顺利。我收到以下错误。

Step 6 : RUN easy_install supervisor
 ---> Running in 1e566719d244
Searching for supervisor
Download error on https://pypi.python.org/simple/supervisor/: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!
Couldn't find index page for 'supervisor' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!
No local packages or download links found for supervisor
error: Could not find suitable distribution for Requirement.parse('supervisor')
2014/09/12 13:37:47 The command [/bin/sh -c easy_install supervisor] returned a non-zero code: 1

请建议如何解决此问题。

提前致谢。

【问题讨论】:

  • 我也有这个问题,所以不只是你

标签: docker ssl centos supervisord easy-install


【解决方案1】:

改用 pip

RUN yum install -y python-pip && pip install pip --upgrade
RUN pip install --no-deps --ignore-installed --pre supervisor 

【讨论】:

  • 值得注意的是,必须先安装epel,然后才能安装python-pip包。 IE。先运行这个:RUN yum install -y epel-release
猜你喜欢
  • 2018-01-05
  • 1970-01-01
  • 2013-12-14
  • 2018-03-09
  • 2016-12-26
  • 1970-01-01
  • 2014-12-20
  • 1970-01-01
  • 2017-04-28
相关资源
最近更新 更多