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

G508031@RMM-P7000032FW MINGW64 /
$ net start com.docker.service
The Docker for Windows Service service is starting.
The Docker for Windows Service service was started successfully.

G508031@RMM-P7000032FW MINGW64 /
$ docker version
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:05:22 2017
OS/Arch: windows/amd64
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.35/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

G508031@RMM-P7000032FW MINGW64 /
$ net start com.docker.service
The requested service has already been started.