mirror of https://github.com/docker/docs.git
update dockerclient
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
76d0171319
commit
f26a50a483
|
|
@ -167,7 +167,7 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "github.com/samalba/dockerclient",
|
||||
"Rev": "8328370620b71cb5acadd41f259dca96865a069b"
|
||||
"Rev": "154a327e7f551978278530db4771e2f05376b541"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/samuel/go-zookeeper/zk",
|
||||
|
|
|
|||
|
|
@ -236,6 +236,8 @@ type ContainerInfo struct {
|
|||
Gateway string
|
||||
Bridge string
|
||||
Ports map[string][]PortBinding
|
||||
Networks map[string]*EndpointSettings
|
||||
|
||||
}
|
||||
SysInitPath 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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue