Merge pull request #18027 from tpounds/fix-err-message-typo

Fix error typo when --expose and --net are specified
This commit is contained in:
Michael Crosby 2015-11-17 11:34:40 -08:00
Родитель d0696ab7f6 a25988cf76
Коммит 19debeb255
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3419,7 +3419,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")
}
}

Просмотреть файл

@ -39,7 +39,7 @@ var (
// 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)")
// 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,