-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman pull ignores a TMPDIR override in containers.conf #12296
Comments
#8725 allowed specifying TMPDIR in containers.conf and was merged just 6 months prior to 3.2.3. But perhaps it never worked for pulls? |
From the code, it looks like it will not be set if the TMPDIR is set in the environment. Should set the envioronment based on containers.conf. It should work for podman pulls, in podman 3.4, and probably earlier, how did you check? |
Could you try the same test in podman 3.4. I fixed somehing on this back in June. commit 7864108
|
The Engine.Env needs to be set very early in the setup process to make sure no one attempts to use the environment. Fixes: containers/podman#12296 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Fixes: containers#12296 [NO NEW TESTS NEEDED] because there is no easy way to test this. Tests are in containers/common. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
I verified TMPDIR was not set in the environment before invoking podman by verifying TMPDIR was not set in Thanks for the quick fix, I'll take it you have reproduced it and verified the fix. |
Yup, Pretty much followed your procedure, Thanks for finding it. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
podman pull rockylinux/rockylinux:8
, and hit Ctrl-z to freeze the download to see where podman downloads images to.Describe the results you received:
Inspecting /tmp and /var/tmp, only /var/tmp has a new directory entry with a name like
storage759289511
, with a timestamp close to now. I.e. podman pulled image to /var/tmp.Describe the results you expected:
Expected
podman pull
to download to /tmp.Pulling with an environment variable TMPDIR=/tmp works. Setting the env option of the engine table in containers.conf(5) is supposed to work in an equivalent way: "Environment variables to be used when running the container engine (e.g., Podman, Buildah)".
Additional information you deem important (e.g. issue happens only occasionally):
Rootless podman works in the same way: Any TMPDIR in ~/.config/containers/containers.conf is ignored.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
No and yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: