From f9bccd7060599b0664cc66e06c6fe8cd55e5f138 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 19 Jul 2021 14:52:47 -0400 Subject: [PATCH] libimage.RuntimeFromStore(): stop overriding the BlobInfoCache location When it was first introduced, the blob info cache's location didn't change from the system-wide default location when we were running in rootless mode, so we started setting its location ourselves to avoid triggering permissions errors when updating it. The image library has since started taking into account that it was running in rootless mode, but its hardwired default isn't the same as the one we were setting, so we ended up creating a second cache file. Stop doing that. Signed-off-by: Nalin Dahyabhai --- libimage/runtime.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libimage/runtime.go b/libimage/runtime.go index 1fd2973cb..ea1f94b3c 100644 --- a/libimage/runtime.go +++ b/libimage/runtime.go @@ -3,7 +3,6 @@ package libimage import ( "context" "os" - "path/filepath" "strings" "github.com/containers/image/v5/docker/reference" @@ -94,10 +93,6 @@ func RuntimeFromStore(store storage.Store, options *RuntimeOptions) (*Runtime, e setRegistriesConfPath(&systemContext) - if systemContext.BlobInfoCacheDir == "" { - systemContext.BlobInfoCacheDir = filepath.Join(store.GraphRoot(), "cache") - } - return &Runtime{ store: store, systemContext: systemContext,