This commit is contained in:
Nikita Korolev 2025-07-12 10:26:05 +03:00 committed by GitHub
commit f6e98a2617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
Fixes the issue with compose logs for multiple targets when any container is missing

View File

@ -3605,9 +3605,10 @@ async def compose_logs(compose: PodmanCompose, args: argparse.Namespace) -> None
podman_args.append("-t")
if args.until:
podman_args.extend(["--until", args.until])
# podman logs supports multiple targets,
# but will fail completely if any container is missing
for target in targets:
podman_args.append(target)
await compose.podman.run([], "logs", podman_args)
await compose.podman.run([], "logs", [*podman_args, target])
@cmd_run(podman_compose, "config", "displays the compose file")