Browse code

Not protect dangling images for integration-cli

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Alexander Morozov authored on 2015/04/25 05:16:51
Showing 1 changed files
... ...
@@ -408,7 +408,10 @@ func init() {
408 408
 		}
409 409
 		fields := strings.Fields(l)
410 410
 		imgTag := fields[0] + ":" + fields[1]
411
-		protectedImages[imgTag] = struct{}{}
411
+		// just for case if we have dangling images in tested daemon
412
+		if imgTag != "<none>:<none>" {
413
+			protectedImages[imgTag] = struct{}{}
414
+		}
412 415
 	}
413 416
 }
414 417