Docker Community Forums

Share and learn in the Docker community.

Getting error while running docker in window 10home "A connection attempt failed "

Hi All,

am new to the docker. I created the new docker image based on the steps provided my microsoft in below link
https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial/intro/run-docker

when i am trying to run the docker with the below command, am getting below error.

docker run -it --rm -p 3000:80 --name mymicroservicecontainer mymicroservice

info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://[::]:80
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app
read tcp 192.168.99.1:14698->192.168.99.100:2376: wsarecv: 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.

In docker cmd window, it showing as running
Arun@Lenovo MINGW64 /c/Program Files/Docker Toolbox
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v19.03.5

For the past 2 days am looking to solve this issue but i couldnt find any solution for it. Can anyone please help me in solving this. Hope everyone come across this kind of issue