summaryrefslogtreecommitdiff
path: root/libpod/image/docker_registry_options.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-26 08:20:38 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-03-26 09:37:07 -0400
commit8762d875c2e0d480b2fb9c9fccc07ad300128347 (patch)
treedbaf91e6fb7b43e3b929053d1d6c9289824bcd3f /libpod/image/docker_registry_options.go
parent9e23e0b3e3b219cbdc42fac4f843d6d2ec97421b (diff)
downloadpodman-8762d875c2e0d480b2fb9c9fccc07ad300128347.tar.gz
podman-8762d875c2e0d480b2fb9c9fccc07ad300128347.tar.bz2
podman-8762d875c2e0d480b2fb9c9fccc07ad300128347.zip
Use TMPDIR when commiting images
Fixes: https://github.com/containers/podman/issues/9825 Currently we are using TMPDIR for storaing temporary files when building images, but not when you directly commit the images. This change simply uses the TMPDIR environment variable if set to store temporary files. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/image/docker_registry_options.go')
-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 0a2a375ae..d95234e3d 100644
--- a/libpod/image/docker_registry_options.go
+++ b/libpod/image/docker_registry_options.go
@@ -69,6 +69,7 @@ func GetSystemContext(signaturePolicyPath, authFilePath string, forceCompress bo
sc.AuthFilePath = authFilePath
sc.DirForceCompress = forceCompress
sc.DockerRegistryUserAgent = fmt.Sprintf("libpod/%s", podmanVersion.Version)
+ sc.BigFilesTemporaryDir = parse.GetTempDir()
return sc
}