Docker connection error Windows

I’m having some problems with starting docker on my Windows machine. First it’s downloading some files as usual and after that I’m receiving messages like.

WARNING: Retrying (Retry(total=4, connect=None, read=None,
redirect=None, status=None)) after connection broken by
‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x7fb06baaa450>: Failed to establish a new connection:
[Errno -3] Try again’)': /simple/django/

This is how my dockerfile looks:

FROM python:3.7-alpine
MAINTAINER Rade Ilijev

ENV PYTHONUNBUFFERED 1

COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

RUN mkdir /app
WORKDIR /app
COPY ./app /app

RUN adduser -D user
USER user

and this is requirements.txt

Django>=2.2.5,<2.2.0
djangorestframework>=3.10.3, <3.10.0

Also in Docker Daemon I have changed:

{
“registry-mirrors”: [*],
“insecure-registries”: [*],
“debug”: true,
“experimental”: true
}

What am I doing wrong?

Hi rade98,

From the output message, the pip command did not work out well.
Check out your network configuration, anti-virus, proxy.

Best Regards,
Fouscou

Hello. I had the reverse problem. I built a docker image from python:3.7 and everything worked. However, the image was 900+ MB. I then tried to build the image from python:3.7-alpine and got the same error you are experiencing. I haven’t figured out the issue, but you might try the bloated python image and see if your problem goes away.

Hi @rade98, were you able to figure it out? I’m having the same exact issue and would appreciate it a lot if you can share your experience. Thank you!

Hi rcriten,

Did you find any solution ,I am also facing the same issue