From 2b01fbf49a696ffd1dffb81dafa4e0bb573eefc4 Mon Sep 17 00:00:00 2001 From: Mikhail Khachayants Date: Mon, 10 Oct 2022 13:59:59 +0300 Subject: [PATCH] Fix empty system context when copy image from oci-archive transport Images runtime used the OCI archive transport with an empty system context, so such environment variables from user like TMDDIR were ignored. Signed-off-by: Mikhail Khachayants --- libimage/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimage/pull.go b/libimage/pull.go index 51712bb3b..955132868 100644 --- a/libimage/pull.go +++ b/libimage/pull.go @@ -232,7 +232,7 @@ func (r *Runtime) copyFromDefault(ctx context.Context, ref types.ImageReference, imageName = storageName case ociArchiveTransport.Transport.Name(): - manifestDescriptor, err := ociArchiveTransport.LoadManifestDescriptor(ref) + manifestDescriptor, err := ociArchiveTransport.LoadManifestDescriptorWithContext(r.SystemContext(), ref) if err != nil { return nil, err }