From 81a7095389f2220aa7b0631f6013a4c03839dbd9 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 1 Jun 2018 13:02:20 +0200 Subject: podman: allow to override Tmpdir Signed-off-by: Giuseppe Scrivano Closes: #871 Approved by: mheon --- cmd/podman/libpodruntime/runtime.go | 3 +++ cmd/podman/main.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go index acb531737..9ea40e00a 100644 --- a/cmd/podman/libpodruntime/runtime.go +++ b/cmd/podman/libpodruntime/runtime.go @@ -41,6 +41,9 @@ func GetRuntimeWithStorageOpts(c *cli.Context, storageOpts *storage.StoreOptions if c.GlobalIsSet("conmon") { options = append(options, libpod.WithConmonPath(c.GlobalString("conmon"))) } + if c.GlobalIsSet("tmpdir") { + options = append(options, libpod.WithTmpDir(c.GlobalString("tmpdir"))) + } if c.GlobalIsSet("cgroup-manager") { options = append(options, libpod.WithCgroupManager(c.GlobalString("cgroup-manager"))) diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 56e724098..8ee86dd92 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -153,6 +153,10 @@ func main() { Name: "root", Usage: "path to the root directory in which data, including images, is stored", }, + cli.StringFlag{ + Name: "tmpdir", + Usage: "path to the tmp directory", + }, cli.StringFlag{ Name: "runroot", Usage: "path to the 'run directory' where all state information is stored", -- cgit v1.2.3-54-g00ecf