Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A connection attempt failed because the connected party did not properly respond after a period of time #2575

Closed
2 tasks done
superzadeh opened this issue Sep 10, 2018 · 24 comments

Comments

@superzadeh
Copy link

superzadeh commented Sep 10, 2018

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: BD2EB361-BE29-4A76-9BF5-8D17D0BAE512/20180910105402
  • Diagnostics ID: BD2EB361-BE29-4A76-9BF5-8D17D0BAE512/20180912112953
  • Diagnostics ID: BD2EB361-BE29-4A76-9BF5-8D17D0BAE512/20180920162336
  • Diagnostics ID: BD2EB361-BE29-4A76-9BF5-8D17D0BAE512/20180927141455

Expected behavior

Docker and Docker Compose commands should execute without error.

Actual behavior

docker commands fail with a message Error response from daemon: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

docker-compose commands fail with a message ERROR: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Information

  • Windows Version: 10.0.17134
  • Docker for Windows Version: 18.06.1-ce-win73 (19507)
  • Compose Version: 1.22

image

Steps to reproduce the behavior

Sorry if the steps to reproduce below seems a bit funky, however this is how I reproduce it 100% of the time these days.

  1. Boot your machine, docker starts
  2. Put your machine into your bag (goes into sleep mode), go to work (I have about 30min commute)
    OR Close up your laptop, go out for lunch (I usually take 30min to 1 hour to eat)
  3. Pull out your machine, run a command to start containers ==> run into the issue

Additional info

The Docker icon in systray seems to indicate that everything is running fine, however it's not. Restarting Docker usually doesn't help, most of the time I need to reboot my laptop.

@petersedivec
Copy link

Seeing the same issue running (Windows 10 Version 1709 OS Build 16299.15)
image

@superzadeh
Copy link
Author

superzadeh commented Sep 27, 2018

Any update on this? Is there anything else I can do to help? Ran into it multiple times again, uploaded some of the diagnostics.

@ManfredLange
Copy link

Same problem here. Uploaded two crash reports, then I picked "Reset to defaults" (or whatever it said on the crash report upload dialog box. Although this removes all containers, Docker starts working again without reboot. And I have a script anyways to create all the containers I need. Next time this happens I'll reset to defaults right away.

@crowne
Copy link

crowne commented Dec 18, 2018

Same issue running on Windows 10 Pro 1803 OS Build 17134.471
This happens when I run docker-compose up -d
Kitematic also fails to connect.

image

@crowne
Copy link

crowne commented Dec 18, 2018

I think I've resolved my issue by increasing the Memory from 2048 MB to 4096 MB and the Swap 1024 MB to 2048 MB.

image

@Karlheinzniebuhr
Copy link

Same issue after updating to version Version 2.0.0.0-win81 (29211) 4271b9e

@SrinivasTangella
Copy link

I think I've resolved my issue by increasing the Memory from 2048 MB to 4096 MB and the Swap 1024 MB to 2048 MB.

image

Yes, this worked!

@tshepza
Copy link

tshepza commented Feb 19, 2019

Iyhoo after a week of struggle I came across this post. Fixed my issue by increassing Memory to 4096

@propagandaCreative
Copy link

This worked for me, too

@eugene-matvejev
Copy link

eugene-matvejev commented Apr 5, 2019

i tried all options -

> docker ps
error during connect: Get https://192.168.99.100:2376/v1.39/containers/json: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

same error

mac work fine, but windows is don't run at all

@benbostic
Copy link

Same here, @eugene-matvejev. Tried the resource adjustments. Same error.

Specifically, mine is failing in an Azure DevOps Docker Task (push) on a POST to the Docker host.

@lolmaus
Copy link

lolmaus commented May 22, 2019

Hi! Using Windows 10 Pro x64 version 1903 (10.0.18362 Build 18362) on AMD Ryzen with Hyper-V enabled.

Kitematic does work in native mode and does run containers:

image

But Docker CLI does not work.

Trying docker info in a PowerShell initiated from Kitematic results in a long pause and then an error message:

error during connect: Get https://192.168.99.100:2376/v1.39/info: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Increasing the memory setting in Docker Desktop did not help.

Please advise.

@a90machado
Copy link

On Windows 10 increasing the Memory and Swap resolve my issue.

@lolmaus
Copy link

lolmaus commented Jun 18, 2019

I've noticed that the error message contains a different IP than Docker Desktop is using:

$ docker info
error during connect: Get https://192.168.99.100:2376/v1.39/info: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

sceenshot

$ ipconfig

(...)

Ethernet adapter vEthernet (DockerNAT):

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 10.0.75.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

(...)

ipconfig is not reporting any adapter with a 192.168.100.x address.


Why is the docker CLI command using 192.168.99.100? How do I make it use 10.0.75.x?

PS Note that Kitematic works fine and is able to run Docker containers in the native mode. E. g. I've started hello-world-nginx and was able to access its web page. But the CLI command does not work! 😭

@allout58
Copy link

@lolmaus Was running into the same issue, seems to have been an issue with having both Docker Toolbox (old version using VirtualBox) and Docker for Windows (using Hyper-V) installed. Removing Docker Toolbox and re-installing Docker for Windows seems to have fixed it for me.

@lolmaus
Copy link

lolmaus commented Jun 23, 2019

Thank you so much, @allout58! This resolved my issue. 🙇

Note that I also had to delete environment variables starting with DOCKER which also explains where the wrong IP address was coming from!

@jheidlage1222
Copy link

@lolmaus I did both delete those env vars and remove docker toolbox before reinstalling and the issue is resolved. Much appreciated!

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

2 similar comments
@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@JohnLins
Copy link

JohnLins commented Dec 8, 2019

I had this same problem, you just have to make sure that the VM is running correctly if your using Windows or Mac, Docker depends on Virtual Box running Linux in this case, so you must open Kitematic and click the VirtualBox button to allow access. When I did this, the hello world ran correctly!

@brakop
Copy link

brakop commented Dec 22, 2019

My issue on this was similar, but not my resolution. I tried removing Docker desktop and using the windows set command from command prompt to remove DOCKER* env variables, but after installing Docker Desktop again the environment variables just came back. I then went into the System properties through the Win10 properties and removed them from there (and did not reinstall Dicker Desktop) and then finally things were fine. This issued started for me because of a Win10 Pro upgrade from Win7 Pro.

@HudsonAkridge
Copy link

@allout58 you just saved me a ton of time and other issues. Thank you so much. Nothing was working, this was exactly my problem.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests