1
0
mirror of https://github.com/moby/moby.git synced 2025-07-19 01:02:31 +03:00

Fix docker inspect container only reports last assigned information

Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Lei Jitang
2015-10-26 08:00:49 -04:00
committed by Tibor Vass
parent bf9f2691ca
commit 1b9a08e719
6 changed files with 95 additions and 52 deletions

View File

@ -284,7 +284,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkConnectDisconnect(c *check.C) {
// check if container IP matches network inspect
ip, _, err := net.ParseCIDR(nr.Containers[containerID].IPv4Address)
c.Assert(err, check.IsNil)
containerIP := findContainerIP(c, "test")
containerIP := findContainerIP(c, "test", "test")
c.Assert(ip.String(), checker.Equals, containerIP)
// disconnect container from the network