Explorar o código

Merge pull request #12764 from LK4D4/not_protect_dangling

Not protect dangling images for integration-cli
Alexander Morozov %!s(int64=10) %!d(string=hai) anos
pai
achega
602fd4e14b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      integration-cli/docker_utils.go

+ 4 - 1
integration-cli/docker_utils.go

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