2014-09-12 15 views
5

Przez ostatnie dwa dni czytam docker-container i próbuję skonfigurować kontener Apache.Docker Centos 7 easy_install supervisor ssl issue za proxy

Jestem za proxy. Poniżej znajduje się zawartość mojego pliku 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 

Wszystko poszło dobrze przed RUN easy_install supervisor. Dostaję błąd poniżej.

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 

Proszę zasugerować, jak rozwiązać ten problem.

Z góry dziękuję.

+1

ja też mam ten problem, więc nie jest to tylko ty –

Odpowiedz

5

korzystanie PIP zamiast

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

Warto zauważyć, że EPEL muszą być zainstalowane, zanim będzie można zainstalować pakiet python-pip. To znaczy. uruchom najpierw: 'RUN yum install -y epel-release' –

Powiązane problemy