Remove CLI specific information for API error messages. Issue #17147
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com> Upstream-commit: 74900edbf867e6ffe4e824a8c6383eb34a658341 Component: engine
This commit is contained in:
committed by
Karol Duleba
parent
0a4f515b90
commit
c9f2f55bc6
@ -6,6 +6,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/pkg/integration/checker"
|
||||
"github.com/docker/docker/runconfig"
|
||||
"github.com/go-check/check"
|
||||
)
|
||||
|
||||
@ -202,7 +203,7 @@ func (s *DockerSuite) TestLinksNetworkHostContainer(c *check.C) {
|
||||
// Running container linking to a container with --net host should have failed
|
||||
c.Assert(err, checker.NotNil, check.Commentf("out: %s", out))
|
||||
// Running container linking to a container with --net host should have failed
|
||||
c.Assert(out, checker.Contains, "--net=host can't be used with links. This would result in undefined behavior")
|
||||
c.Assert(out, checker.Contains, runconfig.ErrConflictHostNetworkAndLinks.Error())
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestLinksEtcHostsRegularFile(c *check.C) {
|
||||
|
||||
Reference in New Issue
Block a user