Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Network Alias #461

Closed
vito-c opened this issue Apr 27, 2017 · 1 comment
Closed

Network Alias #461

vito-c opened this issue Apr 27, 2017 · 1 comment
Assignees
Labels

Comments

@vito-c
Copy link
Contributor

vito-c commented Apr 27, 2017

From what I can tell network aliases don't work at all.

@vito-c
Copy link
Contributor Author

vito-c commented Apr 27, 2017

ALIASES: [mongo.db mongo.local.test.in]
Network ID: "test_default"
ENDPOINT: &network.EndpointSettings{IPAMConfig:(*network.EndpointIPAMConfig)(0xc4202e9b40), Links:[]string{}, Aliases:[]string{"mongo.db", "mongo.local.test.in"},
     fmt.Printf("Network ID: %#v\n", networkID)
    fmt.Printf("ENDPOINT: %#v\n", nc.EndpointConfig)
    fmt.Printf("*ENDPOINT: %#v\n", config)
    resp, err := cli.post(ctx, "/networks/" + networkID + "/connect", nil, nc, nil)

Here is the response:

ALIASES: [mongo.db mongo.local.test.in]
Network ID: "test_default"
ENDPOINT: &network.EndpointSettings{IPAMConfig:(*network.EndpointIPAMConfig)(0xc4202e9b40), Links:[]string{}, Aliases:[]string{"mongo.db", "mongo.local.test.in"},

RESP: client.serverResponse{
body:http.noBody{}, header:http.Header{
  "Docker-Experimental":[]string{"true"}, "Server":[]string{
     "Docker/17.03.1-ce (linux)"}, 
      "Api-Version":[]string{"1.27"}, 
      "Content-Length":[]string{"0"}, 
      "Content-Type":[]string{"text/plain; charset=utf-8"}, 
      "Date":[]string{"Thu, 27 Apr 2017 17:15:49 GMT"}}, statusCode:200}

Then docker inspect doesn't show any networks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants