diff options
-rw-r--r-- | cmd/podman/libpodruntime/runtime.go | 3 | ||||
-rw-r--r-- | cmd/podman/main.go | 4 |
2 files changed, 7 insertions, 0 deletions
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 @@ -154,6 +154,10 @@ func main() { 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", }, |