mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #12764 from LK4D4/not_protect_dangling
Not protect dangling images for integration-cli
This commit is contained in:
commit
602fd4e14b
1 changed files with 4 additions and 1 deletions
|
@ -408,9 +408,12 @@ func init() {
|
|||
}
|
||||
fields := strings.Fields(l)
|
||||
imgTag := fields[0] + ":" + fields[1]
|
||||
// just for case if we have dangling images in tested daemon
|
||||
if imgTag != "<none>:<none>" {
|
||||
protectedImages[imgTag] = struct{}{}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func deleteAllImages() error {
|
||||
out, err := exec.Command(dockerBinary, "images").CombinedOutput()
|
||||
|
|
Loading…
Add table
Reference in a new issue