Fix typo when --expose and --net are specified.

Signed-off-by: Trevor Pounds <trevor.pounds@gmail.com>
Upstream-commit: a25988cf760b96c855b3e1442547ea9d763c7cd1
Component: engine
This commit is contained in:
Trevor Pounds
2015-11-16 22:01:20 -08:00
parent cbf9321ca8
commit b68e94a11d
2 changed files with 2 additions and 2 deletions
@@ -3429,7 +3429,7 @@ func (s *DockerSuite) TestRunContainerNetModeWithExposePort(c *check.C) {
}
out, _, err = dockerCmdWithError("run", "--expose", "5000", "--net=container:parent", "busybox")
if err == nil || !strings.Contains(out, "Conflicting options: --expose and the network mode (--expose)") {
if err == nil || !strings.Contains(out, "Conflicting options: --expose and the network mode (--net)") {
c.Fatalf("run --net=container with --expose should error out")
}
}