mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13356 from LK4D4/test_double_nethost
Test for two containers in --net=host
This commit is contained in:
commit
c6d9c904af
1 changed files with 7 additions and 0 deletions
|
@ -3178,3 +3178,10 @@ func (s *DockerSuite) TestMountIntoSys(c *check.C) {
|
|||
c.Fatal("container should be able to mount into /sys/fs/cgroup")
|
||||
}
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestTwoContainersInNetHost(c *check.C) {
|
||||
dockerCmd(c, "run", "-d", "--net=host", "--name=first", "busybox", "top")
|
||||
dockerCmd(c, "run", "-d", "--net=host", "--name=second", "busybox", "top")
|
||||
dockerCmd(c, "stop", "first")
|
||||
dockerCmd(c, "stop", "second")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue