Skip to content

Commit 0d461a8

Browse files
committed
Fix the default Podman integration socket base directory
Fixes: #336 Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent 80bcd46 commit 0d461a8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/gardenlinux/oci/podman_context.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import logging
88
from contextlib import ExitStack
99
from functools import wraps
10-
from os import rmdir
10+
from os import environ, rmdir
1111
from pathlib import Path
1212
from subprocess import PIPE, STDOUT, Popen
1313
from 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

0 commit comments

Comments
 (0)