mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix typo when --expose and --net are specified.
Signed-off-by: Trevor Pounds <trevor.pounds@gmail.com>
This commit is contained in:
parent
a3065fa48f
commit
a25988cf76
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")
|
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")
|
c.Fatalf("run --net=container with --expose should error out")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ var (
|
||||||
// ErrConflictNetworkPublishPorts conflict between the pulbish options and the network mode
|
// ErrConflictNetworkPublishPorts conflict between the pulbish options and the network mode
|
||||||
ErrConflictNetworkPublishPorts = fmt.Errorf("Conflicting options: -p, -P, --publish-all, --publish and the network mode (--net)")
|
ErrConflictNetworkPublishPorts = fmt.Errorf("Conflicting options: -p, -P, --publish-all, --publish and the network mode (--net)")
|
||||||
// ErrConflictNetworkExposePorts conflict between the expose option and the network mode
|
// ErrConflictNetworkExposePorts conflict between the expose option and the network mode
|
||||||
ErrConflictNetworkExposePorts = fmt.Errorf("Conflicting options: --expose and the network mode (--expose)")
|
ErrConflictNetworkExposePorts = fmt.Errorf("Conflicting options: --expose and the network mode (--net)")
|
||||||
)
|
)
|
||||||
|
|
||||||
// Parse parses the specified args for the specified command and generates a Config,
|
// Parse parses the specified args for the specified command and generates a Config,
|
||||||
|
|
Loading…
Add table
Reference in a new issue