使用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.............
把vim /etc/docker daemon.json 里的源换掉即可 看下网络 没连接上 安装源不可用 连接错误
页:
[1]