dotnet / dotnet/Docker.DotNet

Connection failed when converted a console application to docker container

Open
#548 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.