测试积点老人 发表于 2019-1-11 10:24:28

使用docker 制作python 镜像是报错

Dockerfile 如下
FROM python:2.7
LABEL maintainer="xiaodao11 295621649@qq.com"
RUN pip install flask
COPY app.py /app/
WORKDIR /app
EXPOSE 5000
CMD ["python","app.py"]docker build ....报错 ..Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: Temporary failure in name resolution',)': /simple/selectivesearch/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._ve.............

海海豚 发表于 2019-1-14 10:19:14

把vim /etc/docker daemon.json 里的源换掉即可

qqq911 发表于 2019-1-14 11:04:45

看下网络

jingzizx 发表于 2019-1-14 12:05:42

没连接上

abcsell 发表于 2019-1-14 13:52:34

安装源不可用

yyf13 发表于 2019-1-14 14:33:17

连接错误
页: [1]
查看完整版本: 使用docker 制作python 镜像是报错