Skip to content

Show logs for each container independently #1255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

doc-sheet
Copy link

Currently podman compose logs cnt1 cnt2 cnt3 as well as podman logs fails with "no such container" if any container is missing.

Tests will be later.

for target in targets:
podman_args.append(target)
await compose.podman.run([], "logs", podman_args)
await compose.podman.run([], "logs", [*podman_args, target])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work with -f, will it? I think better idea would be to check what containers exist and only pass existing ones to podman.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I forgot about -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants