podman: allow to override Tmpdir

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #871
Approved by: mheon
This commit is contained in:
Giuseppe Scrivano
2018-06-01 13:02:20 +02:00
committed by Atomic Bot
parent be66361e08
commit 81a7095389
2 changed files with 7 additions and 0 deletions

View File

@ -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")))

View File

@ -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",