-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Incorrect duration status in podman ps #26192
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
Comments
Is it possible that your system clock is/was wrong and then later adjusted after the container was started? Podman stores timestamps and then if you change the system time any such calculations will be wrong. |
It's possible as I didn't explicitly check the date/time at system boot, but I do run tmux which has a date/clock in it's status bar and it's always been correct. After rebooting the raspberry pi today
|
I think that is the most likely explanation. So overall I see no good way to fix this, I suppose for uptime of the container we could generate the duration on the server and adding this as new API field but given it cannot be used for the created time that seems like unnecessary complexity. There is also #23022 which shows that even some internals of podman depend on the time which is obviously not good. |
Issue Description
Hi all, when I run
podman ps
it shows an incorrect uptime under 'status'. For example it's showing 'Up 2 months' but the system has only been running for 16 hours and this entire system was only installed 1 month ago with a clean install.I'm running this all on Almalinux 9 on a Raspberry pi 5 8bg
Steps to reproduce the issue
Steps to reproduce the issue
podman ps
Describe the results you received
Incorrect uptime
Describe the results you expected
Correct uptime
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: