Merge pull request #24755 from thaJeztah/fix-error-message
update "image delete" error to match actual behavior
This commit is contained in:
commit
f49fdb9d0b
2 changed files with 2 additions and 2 deletions
|
@ -375,7 +375,7 @@ func (daemon *Daemon) checkImageDeleteConflict(imgID image.ID, mask conflictType
|
|||
if mask&conflictActiveReference != 0 && len(daemon.referenceStore.References(imgID)) > 0 {
|
||||
return &imageDeleteConflict{
|
||||
imgID: imgID,
|
||||
message: "image is referenced in one or more repositories",
|
||||
message: "image is referenced in multiple repositories",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ func (s *DockerSuite) TestRmiImgIDForce(c *check.C) {
|
|||
// rmi tagged in multiple repos should have failed without force
|
||||
c.Assert(err, checker.NotNil)
|
||||
// rmi tagged in multiple repos should have failed without force
|
||||
c.Assert(out, checker.Contains, "(must be forced) - image is referenced in one or more repositories", check.Commentf("out: %s; err: %v;", out, err))
|
||||
c.Assert(out, checker.Contains, "(must be forced) - image is referenced in multiple repositories", check.Commentf("out: %s; err: %v;", out, err))
|
||||
|
||||
dockerCmd(c, "rmi", "-f", imgID)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue