ignore non blobs
This commit is contained in:
parent
1552cee59f
commit
a07c935d34
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue