diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-06-01 13:02:20 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-15 14:53:18 +0000 |
commit | 81a7095389f2220aa7b0631f6013a4c03839dbd9 (patch) | |
tree | abf3749ec58b663dea847c56927e378034587596 /cmd/podman/libpodruntime/runtime.go | |
parent | be66361e08d571dee36dd6034ee54aacf9e88e96 (diff) | |
download | podman-81a7095389f2220aa7b0631f6013a4c03839dbd9.tar.gz podman-81a7095389f2220aa7b0631f6013a4c03839dbd9.tar.bz2 podman-81a7095389f2220aa7b0631f6013a4c03839dbd9.zip |
podman: allow to override Tmpdir
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #871
Approved by: mheon
Diffstat (limited to 'cmd/podman/libpodruntime/runtime.go')
-rw-r--r-- | cmd/podman/libpodruntime/runtime.go | 3 |
1 files changed, 3 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"))) |