diff --git a/pkg/chunked/cache_linux.go b/pkg/chunked/cache_linux.go index a7dc18be42..cbf7f64585 100644 --- a/pkg/chunked/cache_linux.go +++ b/pkg/chunked/cache_linux.go @@ -297,7 +297,7 @@ func (c *layersCache) load() error { // the cache file is either not present or broken. Try to generate it from the TOC. l, err = c.createCacheFileFromTOC(r.ID) - if err != nil { + if err != nil && !errors.Is(err, storage.ErrLayerUnknown) { logrus.Warningf("Error creating cache file for layer %q: %v", r.ID, err) } if l != nil {