mirror of https://github.com/docker/docs.git
Merge pull request #1735 from vieux/update_dockerclient
update dockerclient
This commit is contained in:
commit
5ab32d0705
|
|
@ -167,7 +167,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/samalba/dockerclient",
|
"ImportPath": "github.com/samalba/dockerclient",
|
||||||
"Rev": "8328370620b71cb5acadd41f259dca96865a069b"
|
"Rev": "154a327e7f551978278530db4771e2f05376b541"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/samuel/go-zookeeper/zk",
|
"ImportPath": "github.com/samuel/go-zookeeper/zk",
|
||||||
|
|
|
||||||
|
|
@ -236,6 +236,8 @@ type ContainerInfo struct {
|
||||||
Gateway string
|
Gateway string
|
||||||
Bridge string
|
Bridge string
|
||||||
Ports map[string][]PortBinding
|
Ports map[string][]PortBinding
|
||||||
|
Networks map[string]*EndpointSettings
|
||||||
|
|
||||||
}
|
}
|
||||||
SysInitPath string
|
SysInitPath string
|
||||||
ResolvConfPath string
|
ResolvConfPath string
|
||||||
|
|
|
||||||
|
|
@ -235,24 +235,15 @@ func TestPortFilterRandomAssignment(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}},
|
}},
|
||||||
NetworkSettings: struct {
|
|
||||||
IPAddress string `json:"IpAddress"`
|
|
||||||
IPPrefixLen int `json:"IpPrefixLen"`
|
|
||||||
Gateway string
|
|
||||||
Bridge string
|
|
||||||
Ports map[string][]dockerclient.PortBinding
|
|
||||||
}{
|
|
||||||
Ports: map[string][]dockerclient.PortBinding{
|
|
||||||
"80/tcp": {
|
|
||||||
{
|
|
||||||
HostIp: "127.0.0.1",
|
|
||||||
HostPort: "1234",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
container.Info.NetworkSettings.Ports = map[string][]dockerclient.PortBinding{
|
||||||
|
"80/tcp": {
|
||||||
|
{
|
||||||
|
HostIp: "127.0.0.1",
|
||||||
|
HostPort: "1234",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
|
||||||
assert.NoError(t, nodes[0].AddContainer(container))
|
assert.NoError(t, nodes[0].AddContainer(container))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue