mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Don't error out when link name in use.
This preserves old behavior from sqlite links/names. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -212,3 +212,9 @@ func (s *DockerSuite) TestLinksEtcHostsRegularFile(c *check.C) {
|
||||
// /etc/hosts should be a regular file
|
||||
c.Assert(out, checker.Matches, "^-.+\n")
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestLinksMultipleWithSameName(c *check.C) {
|
||||
dockerCmd(c, "run", "-d", "--name=upstream-a", "busybox", "top")
|
||||
dockerCmd(c, "run", "-d", "--name=upstream-b", "busybox", "top")
|
||||
dockerCmd(c, "run", "--link", "upstream-a:upstream", "--link", "upstream-b:upstream", "busybox", "sh", "-c", "ping -c 1 upstream")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user