summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-10-08 16:22:53 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-10-08 16:22:55 -0400
commitf7e11d34b1e8499172606731dbab2662889fc344 (patch)
treea29950dfdf9e988bf77e332bf380091a15dae79a /libpod
parent59b5f0ac32ddf615fada021bc62c823bb73233da (diff)
downloadpodman-f7e11d34b1e8499172606731dbab2662889fc344.tar.gz
podman-f7e11d34b1e8499172606731dbab2662889fc344.tar.bz2
podman-f7e11d34b1e8499172606731dbab2662889fc344.zip
BlobInfoCacheDir is set incorrectly when copying images
It is not set based on the root image directory, and always points at the defaults. This change will get it to follow filepath.Join(ir.store.GraphRoot(), "cache") set from libpod. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/docker_registry_options.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/image/docker_registry_options.go b/libpod/image/docker_registry_options.go
index 257b7ae8d..835473a1f 100644
--- a/libpod/image/docker_registry_options.go
+++ b/libpod/image/docker_registry_options.go
@@ -55,6 +55,7 @@ func (o DockerRegistryOptions) GetSystemContext(parent *types.SystemContext, add
sc.DockerRegistryUserAgent = parent.DockerRegistryUserAgent
sc.OSChoice = parent.OSChoice
sc.ArchitectureChoice = parent.ArchitectureChoice
+ sc.BlobInfoCacheDir = parent.BlobInfoCacheDir
}
return sc
}