File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ func fetchRegistryImageIds(image string) []string {
28
28
return ids
29
29
}
30
30
31
+ ids := []string {}
32
+ if img .IsImageIndex () {
33
+ ids = append (ids , digest )
34
+ return ids // see note above -- this function is used for "docker push" which does not and cannot (currently) support a manifest list / image index
35
+ }
36
+
31
37
manifests , err := img .Manifests (ctx )
32
38
if err != nil {
33
39
if debugFlag {
@@ -36,10 +42,8 @@ func fetchRegistryImageIds(image string) []string {
36
42
return nil
37
43
}
38
44
39
- ids := []string {}
40
- if img .IsImageIndex () {
41
- ids = append (ids , digest )
42
- }
45
+ // TODO balk if manifests has more than one entry in it
46
+
43
47
for _ , manifestDesc := range manifests {
44
48
ids = append (ids , manifestDesc .Digest .String ())
45
49
manifest , err := img .At (manifestDesc ).Manifest (ctx )
You can’t perform that action at this time.
0 commit comments