Openssl 1.0.2版与docker-django不兼容

时间:2017-08-19 18:50:01

标签: python django docker

我有一个django项目,我正在移动到docker。我试图在docker上的本地机器上运行该项目。我已经在我的终端上插入了docker,当我尝试运行该项目时,我遇到了openssl的问题。任何人都可以帮我弄清楚将在docker上运行的openssl版本。这就是我目前从我的终端获得的......

λ docker build -t opentab-test .
Sending build context to Docker daemon  2.093MB
Step 1/6 : FROM python:3
 ---> 968120d8cbe8
Step 2/6 : WORKDIR /usr/src/app
 ---> Using cache
 ---> f0bba915f632
Step 3/6 : COPY requirements.txt ./
 ---> ee3dcb10168a
Removing intermediate container 9776afaf8e9b
Step 4/6 : RUN pip install --no-cache-dir -r requirements.txt
 ---> Running in b540798048a9
Collecting Django==1.11.2 (from -r requirements.txt (line 1))
  Downloading Django-1.11.2-py2.py3-none-any.whl (6.9MB)
Collecting olefile==0.44 (from -r requirements.txt (line 2))
  Downloading olefile-0.44.zip (74kB)
Collecting openssl==1.0.20 (from -r requirements.txt (line 3))
  Could not find a version that satisfies the requirement openssl==1.0.20 (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for openssl==1.0.20 (from -r requirements.txt (line 3))
The command '/bin/sh -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

有没有人知道与docker兼容的当前版本的openssl,或者我如何解决这个问题。

0 个答案:

没有答案