Implement x-podman.pod_args to override --pod-args default

Allow setting an argument list as x-podman.pod_args to override the
default value `--infra=false --share=`. `--pod-args` passed on the command
line takes precedence over the value set in docker-compose.yml; the values
are not merged.

Fixes #1057.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
Matthias Schiffer
2025-02-07 00:42:14 +01:00
parent aa47a373ca
commit 43a2f1d01f
10 changed files with 229 additions and 4 deletions

View File

@ -140,6 +140,7 @@ def set_args(podman_compose: PodmanCompose, file_names: list[str]) -> None:
podman_compose.global_args.env_file = None
podman_compose.global_args.profile = []
podman_compose.global_args.in_pod_bool = True
podman_compose.global_args.pod_args = None
podman_compose.global_args.no_normalize = True