代理后面的Docker Centos 7 easy_install supervisor ssl问题

 Adrian 发布于 2022-12-21 16:15

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

我支持代理.以下是我的Dockerfile的内容.

FROM centos:latest
ENV http_proxy 
ENV https_proxy 
ENV ftp_proxy 
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

请建议如何解决此问题.

提前致谢.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有