ConnectNetworkAsync results in error
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 416
- PR merge metrics
- No merged PRs in 30d
Description
#**Output of `dotnet --info`:**
```
.NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
```
**What version of Docker.DotNet?:**
```
"Docker.DotNet": "2.124.3",
```
**Steps to reproduce the issue:**
```
var network = this.dockerClient.Networks.ListNetworksAsync().Result;
var d = network.First(x => x.Name == "integrationtests");
this.dockerClient.Networks.ConnectNetworkAsync(d.Name, new NetworkConnectParameters() { Container = "am2" }).Wait();
```
**What actually happened?:**
An exception back with
```
"Docker API responded with status code=NotFound, response={\"message\":\"network integrationtests/connect not found\"}\n"
```
**What did you expect to happen?:**
For it to connect
**Additional information:**
When running `curl POST --data "{\"container\":\"am2\"}" -H "Content-Type:application/json" http://127.0.0.1:2376/v1.24/networks/integrationtests/connect -v` it worked so not sure why it's not working via this API
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.