mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
podman: allow to override Tmpdir
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #871 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
be66361e08
commit
81a7095389
@ -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")))
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user