ignore non blobs

This commit is contained in:
Michael Yang 2023-11-14 14:27:51 -08:00
parent 1552cee59f
commit a07c935d34

View file

@ -782,8 +782,10 @@ func PruneLayers() error {
if runtime.GOOS == "windows" {
name = strings.ReplaceAll(name, "-", ":")
}
if strings.HasPrefix(name, "sha256:") {
deleteMap[name] = struct{}{}
}
}
log.Printf("total blobs: %d", len(deleteMap))