Show logs for each container independently

This commit is contained in:
ds 2025-06-28 16:02:17 +03:00
parent 8eb55735e9
commit b348117a80
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

@ -3553,9 +3553,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")