File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import logging
88from contextlib import ExitStack
99from functools import wraps
10- from os import rmdir
10+ from os import environ , rmdir
1111from pathlib import Path
1212from subprocess import PIPE , STDOUT , Popen
1313from tempfile import mkdtemp
@@ -59,21 +59,22 @@ def __enter__(self) -> Any:
5959 :since: 1.0.0
6060 """
6161
62- self ._tmpdir = mkdtemp ()
62+ self ._tmpdir = mkdtemp (dir = environ . get ( "HOME" ) )
6363
6464 podman_sock = str (Path (self ._tmpdir , "podman.sock" ).absolute ())
6565
6666 self ._podman = PodmanClient (base_url = f"unix://{ podman_sock } " )
6767 self ._podman_daemon = Popen (
6868 args = [
6969 "podman" ,
70+ "--out=/tmp/podman.log" ,
71+ "--log-level=debug" ,
7072 "system" ,
7173 "service" ,
7274 f"--time={ PODMAN_CONNECTION_MAX_IDLE_SECONDS } " ,
7375 f"unix://{ podman_sock } " ,
7476 ],
7577 executable = "podman" ,
76- stdout = PIPE ,
7778 stderr = STDOUT ,
7879 )
7980
You can’t perform that action at this time.
0 commit comments