Skip to content

ConnectNetworkAsync results in error #184

Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions