Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
| ... | ... |
@@ -147,7 +147,7 @@ func (p *v2Pusher) pushV2Tag(ctx context.Context, ref reference.NamedTagged, id |
| 147 | 147 |
} |
| 148 | 148 |
|
| 149 | 149 |
// Loop bounds condition is to avoid pushing the base layer on Windows. |
| 150 |
- for i := 0; i < len(rootfs.DiffIDs); i++ {
|
|
| 150 |
+ for range rootfs.DiffIDs {
|
|
| 151 | 151 |
descriptor := descriptorTemplate |
| 152 | 152 |
descriptor.layer = l |
| 153 | 153 |
descriptor.checkedDigests = make(map[digest.Digest]struct{})
|