Not protect dangling images for integration-cli

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: 9bea123bddb9d2ce8b2aa517c2a2a4b269ed39bc
Component: engine
This commit is contained in:
Alexander Morozov
2015-04-24 13:16:51 -07:00
parent 9fc945a9c1
commit 54dc746ae6

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{}{}
}
}
}