-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
following logs of stopped containers #12646
Comments
Thanks for reaching out and providing the great reproducer.
|
|
@muayyad-alsadi, can you retry with |
output
if I typed
|
in short, if the container is stopped at the time of |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg @mheon What should we do with this? |
Needs to be fixed / prioritized but I am very short on cycles at the moment. |
A friendly reminder that this issue had no activity for 30 days. |
I have this issue, Is there a workaround until you could fix it? |
@vrothberg A golden oldie, covered by stale-issue flag. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
when we create a container without starting it (
podman create
)or when we stop a container
if we follow the logs using
podman logs -f
on multiple containers one or more of them is running and one or more is stopped
later if it started logs are not shown.
Steps to reproduce the issue:
start two containers named sh1 sh2
stop sh1 only
follow logs with both the running sh2 and the stopped one sh1
on different terminal start sh1 (or using the command
( sleep 1; podman start sh1 )&
)Describe the results you received:
output is only seen from sh2, no logs are shown from sh1 despite that it's started after 1 second
Describe the results you expected:
logs from both sh1 and sh2
Additional information you deem important (e.g. issue happens only occasionally):
in
podman-compose
I currently create containers without starting themthen start and attach each of them one by one each on a different thread because we can't attach to multiple
I want a way to start and follow the logs of multiple containers prefixing the name of the container to the output.
internally this might be something like
then either
or
or whatever you suggest
but the current behavior is that
podman logs
seems to be unaware of output created by container started after we run it.I'm not sure what is the best way to achieve this.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: