Docker.DotNet icon indicating copy to clipboard operation
Docker.DotNet copied to clipboard

Connection failed when converted a console application to docker container

Open Kailash-Ramco opened this issue 3 years ago • 0 comments

**What version of Docker.DotNet?: 3.125.5

![image](https://user-images.githubusercontent.com/97166966/149069413-9cdeb4d1-efe6-4b72-be4a-62f765e9db0b.png)

Steps to reproduce the issue:

  1. Create a c# console application with the latest nuget package
  2. Created a Docker file and build a docker image
  3. Ran the docker image.

What actually happened?: I have built a console application that wanted to restart all the stopped containers. When i try to run it from visual studio, it works fine. But when i try to dockerize the application and try to run it as a container, it throws out the error Connection failed or TimeOutException

What did you expect to happen?: Is it possible to connect to local docker daemon, if the console application is deployed as a docker container ?

Kailash-Ramco avatar Jan 12 '22 05:01 Kailash-Ramco