Fix empty container layer history and UI (#21251) (#21278)

Backport of #21251
This commit is contained in:
KN4CK3R authored and GitHub committed 2022-09-27 23:10:19 +08:00
1 parent 43b4c38d4f
commit 790770aef3
4 files changed
+15 -3

No files matched your search

+3 -1
View File
@@ -95,7 +95,9 @@ func parseOCIImageConfig(r io.Reader) (*Metadata, error) {
if i := strings.Index(cmd, "#(nop) "); i != -1 {
cmd = strings.TrimSpace(cmd[i+7:])
}
imageLayers = append(imageLayers, cmd)
if cmd != "" {
imageLayers = append(imageLayers, cmd)
}
}
metadata := &Metadata{