Docker Centos 7 easy_install supervisor ssl issue behind proxy

For the last two days I am reading docker-container and trying to setup an Apache container.

I am behind proxy. Below is the content of my Dockerfile.

  • Docker: How to use redirect (command >> file.txt) from CMD[]?
  • Where should i run my grunt build step when building my docker image for staging and production environments?
  • What is the difference between CMD and ENTRYPOINT in a Dockerfile?
  • How can I make `avahi` work outside when `netatalk` running inside docker on `ubuntu`?
  • Gitlab CI: mount Apache service Docker DocumentRoot directory into main Docker
  • Why does chown increase size of docker image?
  • 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
    

    All went good before RUN easy_install supervisor. I am getting the error below.

    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
    

    Please suggest how to resolve this issue.

    Thanks in advance.

  • Docker can't connect to Websocket PHP
  • Docker worklfow of testing images
  • OpenShift V3: understanding the process with Docker
  • Docker on fedora 20(32-bit) not working
  • Authorization Not working with identityserver4 when using docker
  • Nginx Docker's container : set default home page with a custom index.html
  • One Solution collect form web for “Docker Centos 7 easy_install supervisor ssl issue behind proxy”

    use pip instead

    RUN yum install -y python-pip && pip install pip --upgrade
    RUN pip install --no-deps --ignore-installed --pre supervisor 
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.