summaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r--cmd/podman/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index dc44a9110..2b808b2bc 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -145,6 +145,10 @@ func main() {
if reexec.Init() {
return
}
+ // Hard code TMPDIR functions to use /var/tmp, if user did not override
+ if _, ok := os.LookupEnv("TMPDIR"); !ok {
+ os.Setenv("TMPDIR", "/var/tmp")
+ }
if err := rootCmd.Execute(); err != nil {
outputError(err)
} else {