-
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
Using --since and -f in combination when using podman logs #14104
Comments
Thanks for reaching out, @Morgyn! Please fill out the entire issue template (e.g., |
podman info --debug:
rpm -q podman: podman version:
It's 3.4.7 which I believe is the latest released version, obviously something could have changed since the release. I note that it's mentioned in the But this doesn't work for me, as it performs just the |
Thanks, @Morgyn. Can you share a reproducer? I cannot reproduce with v3.4.7 either. |
Note the only one I had to ctrl+c was the one with only follow, all the others terminated after displaying the last 2 mins of logs. |
https://github.com/Morgyn/followtest Is the source of the test container, if you need to check it for some reason |
Thanks! I am still unable to reproduce. Tested Podman v3.4.7 and v4.0.3 and the k8s-file and the journald log driver. @containers/podman-maintainers can you have a look? |
I also can not reproduce. I tried latest main with both journald and k8s-file driver. |
I've just performed a clean install of fedora 35 + podman 3.4.7 on a new VM and the problem isn't there... So this appears a unique problem to this install. |
@Morgyn, does the container continue to run after |
Reopen if you get it to happen again. |
Re-opening as we don't know what's going on. |
I have resolved the issue by uninstalling and reinstalling podman with a reboot. I feel an older binary must have been sticking around. Apologies for wasting peoples time. |
Not at all. Thanks for reaching out! |
I can reproduce it on Ubuntu 22.04 with both the default 3.4.7 and the latest 4.3.0, even after removing
|
@p-himik Please create a new issue with a reproducer. As mentioned above, we are unable to reproduce. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Using --since/--tail together with -f when issuing
podman logs
Currently when you use both in combination, only since is observed and the log is not followed.
When viewing logs it's handy to get the last few lines before following to get context of the current lines, similar to the GNU
tail -n 10 -f command
This combination works with docker, and it was very useful.
Steps to reproduce the issue:
tail -n 10 -f
podman logs --since 1h -f
docker logs --since 1h -f
The text was updated successfully, but these errors were encountered: