Support reading env vars on Podman

This commit is contained in:
Robin Syl 2024-10-22 18:43:55 +02:00
parent 46e3295003
commit 19d59a18cf

View file

@ -57,7 +57,7 @@ def _read_config() -> Dict:
logger.warning(
"'config.yaml' should be a file, not a directory, skipping"
)
if os.path.exists("/.dockerenv"):
if os.path.exists("/.dockerenv") or os.path.exists("/run/.containerenv"):
ret = _merge(ret, _docker_config())
return ret