Docker Community Forums

Share and learn in the Docker community.

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
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


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

RUN mkdir /app
COPY ./app /app

RUN adduser -D user
USER user

and this is requirements.txt

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,

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