Merge pull request #12764 from LK4D4/not_protect_dangling

Not protect dangling images for integration-cli
Upstream-commit: 602fd4e14b21972c1a98e8e889f264ca4c65d20f
Component: engine
This commit is contained in:
Alexander Morozov
2015-04-24 14:19:55 -07:00

View File

@ -408,7 +408,10 @@ func init() {
}
fields := strings.Fields(l)
imgTag := fields[0] + ":" + fields[1]
protectedImages[imgTag] = struct{}{}
// just for case if we have dangling images in tested daemon
if imgTag != "<none>:<none>" {
protectedImages[imgTag] = struct{}{}
}
}
}