diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-29 07:59:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-29 07:59:04 -0700 |
commit | 8b5f101726408c6d1d0649b68ba1e47d61765ce2 (patch) | |
tree | ead1ab571b6c9133f180d46700315d4509db7edf /libpod/image/pull.go | |
parent | 284dea453d77f524c400e6c26812828d8a7439c7 (diff) | |
parent | 6b0ac2301beb3c9cfbb8af89e9964465a890fd22 (diff) | |
download | podman-8b5f101726408c6d1d0649b68ba1e47d61765ce2.tar.gz podman-8b5f101726408c6d1d0649b68ba1e47d61765ce2.tar.bz2 podman-8b5f101726408c6d1d0649b68ba1e47d61765ce2.zip |
Merge pull request #2635 from rhatdan/cache
Set blob cache directory based on GraphDriver
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r-- | libpod/image/pull.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go index a3b716e65..5a0706b07 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "io" + "path/filepath" "strings" cp "github.com/containers/image/copy" @@ -204,6 +205,7 @@ func (ir *Runtime) pullImageFromHeuristicSource(ctx context.Context, inputName s var goal *pullGoal sc := GetSystemContext(signaturePolicyPath, authfile, false) + sc.BlobInfoCacheDir = filepath.Join(ir.store.GraphRoot(), "cache") srcRef, err := alltransports.ParseImageName(inputName) if err != nil { // could be trying to pull from registry with short name |