Commit a07c935d authored by Michael Yang's avatar Michael Yang
Browse files

ignore non blobs

parent 1552cee5
...@@ -782,7 +782,9 @@ func PruneLayers() error { ...@@ -782,7 +782,9 @@ func PruneLayers() error {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
name = strings.ReplaceAll(name, "-", ":") name = strings.ReplaceAll(name, "-", ":")
} }
deleteMap[name] = struct{}{} if strings.HasPrefix(name, "sha256:") {
deleteMap[name] = struct{}{}
}
} }
log.Printf("total blobs: %d", len(deleteMap)) log.Printf("total blobs: %d", len(deleteMap))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment