diff --git a/server/images.go b/server/images.go index 42def270..893fc4f2 100644 --- a/server/images.go +++ b/server/images.go @@ -782,7 +782,9 @@ func PruneLayers() error { if runtime.GOOS == "windows" { name = strings.ReplaceAll(name, "-", ":") } - deleteMap[name] = struct{}{} + if strings.HasPrefix(name, "sha256:") { + deleteMap[name] = struct{}{} + } } log.Printf("total blobs: %d", len(deleteMap))