Skip to content

Incorrect duration status in podman ps #26192

Open
@Ep0chalypse

Description

@Ep0chalypse

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

podman ps
CONTAINER ID  IMAGE                                        COMMAND               CREATED       STATUS       PORTS                                                                                                                                                                         NAMES
af3525776677  docker.io/timescale/timescaledb-ha:pg17      postgres              2 months ago  Up 2 months  0.0.0.0:5432->5432/tcp, 8008/tcp, 8081/tcp                                                                                                                                    timescaledb
cat /etc/os-release
NAME="AlmaLinux"
VERSION="9.6 (Sage Margay)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.6"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.6 (Sage Margay)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.6"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.6"
SUPPORT_END=2032-06-01
podman version
Client:       Podman Engine
Version:      5.4.0
API Version:  5.4.0
Go Version:   go1.23.6 (Red Hat 1.23.6-2.el9_6)
Built:        Tue May 13 16:18:56 2025
OS/Arch:      linux/arm64
uptime
 16:37:49 up 20:02,  1 user,  load average: 0.14, 0.10, 0.09
rpm -qi basesystem|grep Install
Install Date: Mon Apr 14 20:55:37 2025

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install Almalinux 9 and podman
  2. Run container
  3. run podman ps

Describe the results you received

Incorrect uptime

Describe the results you expected

Correct uptime

podman info output

host:                                                                                                                                                                     arch: arm64                                                                                                                                                             buildahVersion: 1.39.4                                                                                                                                                  cgroupControllers:                                                                                                                                                      - pids                                                                                                                                                                  cgroupManager: systemd                                                                                                                                                  cgroupVersion: v2                                                                                                                                                       conmon:                                                                                                                                                                   package: conmon-2.1.12-1.el9.aarch64                                                                                                                                    path: /usr/bin/conmon                                                                                                                                                   version: 'conmon version 2.1.12, commit: 14d5d44d7845e0ec00e607c1a80a2c6b9b33784e'                                                                                    cpuUtilization:                                                                                                                                                           idlePercent: 99.53                                                                                                                                                      systemPercent: 0.3                                                                                                                                                      userPercent: 0.16                                                                                                                                                     cpus: 4                                                                                                                                                                 databaseBackend: sqlite                                                                                                                                                 distribution:                                                                                                                                                             distribution: almalinux                                                                                                                                                 version: "9.6"                                                                                                                                                        eventLogger: journald                                                                                                                                                   freeLocks: 2027                                                                                                                                                         hostname: hostname.local 
idMappings:                                                                                                                                                               gidmap:                                                                                                                                                                 - container_id: 0                                                                                                                                                         host_id: 1000                                                                                                                                                           size: 1                                                                                                                                                               - container_id: 1                                                                                                                                                         host_id: 100000                                                                                                                                                         size: 65536                                                                                                                                                           uidmap:                                                                                                                                                                 - container_id: 0                                                                                                                                                         host_id: 1000                                                                                                                                                           size: 1                                                                                                                                                               - container_id: 1                                                                                                                                                         host_id: 100000                                                                                                                                                         size: 65536                                                                                                                                                         kernel: 6.6.74-20250127.v8.1.el9                                                                                                                                        linkmode: dynamic                                                                                                                                                       logDriver: journald                                                                                                                                                     memFree: 4321705984                                                                                                                                                     memTotal: 8331169792                                                                                                                                                    networkBackend: netavark                                                                                                                                                networkBackendInfo:                                                                                                                                                       backend: netavark                                                                                                                                                       dns:                                                                                                                                                                      package: aardvark-dns-1.14.0-1.el9.aarch64                                                                                                                              path: /usr/libexec/podman/aardvark-dns                                                                                                                                  version: aardvark-dns 1.14.0                                                                                                                                          package: netavark-1.14.1-1.el9_6.aarch64                                                                                                                                path: /usr/libexec/podman/netavark                                                                                                                                      version: netavark 1.14.1                                                                                                                                              ociRuntime:                                                                                                                                                               name: crun                                                                                                                                                              package: crun-1.21-1.el9_6.aarch64                                                                                                                                      path: /usr/bin/crun                                                                                                                                                     version: |-                                                                                                                                                               crun version 1.21                                                                                                                                                       commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88                                                                                                                        rundir: /run/user/1000/crun                                                                                                                                             spec: 1.0.0 
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL                                                                                                         os: linux                                                                                                                                                               pasta:                                                                                                                                                                    executable: /usr/bin/pasta                                                                                                                                              package: passt-0^20250217.ga1e48a0-1.el9.aarch64                                                                                                                        version: ""                                                                                                                                                           remoteSocket:                                                                                                                                                             exists: true                                                                                                                                                            path: /run/user/1000/podman/podman.sock                                                                                                                               rootlessNetworkCmd: pasta                                                                                                                                               security:                                                                                                                                                                 apparmorEnabled: false                                                                                                                                                  capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT               rootless: true                                                                                                                                                          seccompEnabled: true                                                                                                                                                    seccompProfilePath: /usr/share/containers/seccomp.json                                                                                                                  selinuxEnabled: true                                                                                                                                                  serviceIsRemote: false                                                                                                                                                  slirp4netns:                                                                                                                                                              executable: /usr/bin/slirp4netns                                                                                                                                        package: slirp4netns-1.3.2-1.el9.aarch64                                                                                                                                version: |-                                                                                                                                                               slirp4netns version 1.3.2                                                                                                                                               commit: 0f13345bcef588d2bb70d662d41e92ee8a816d85                                                                                                                        libslirp: 4.4.0                                                                                                                                                         SLIRP_CONFIG_VERSION_MAX: 3                                                                                                                                             libseccomp: 2.5.2                                                                                                                                                   swapFree: 4294963200                                                                                                                                                    swapTotal: 4294963200                                                                                                                                                   uptime: 20h 6m 19.00s (Approximately 0.83 days)                                                                                                                         variant: v8 
plugins:                                                                                                                                                                  authorization: null                                                                                                                                                     log:                                                                                                                                                                    - k8s-file                                                                                                                                                              - none                                                                                                                                                                  - passthrough                                                                                                                                                           - journald                                                                                                                                                              network:                                                                                                                                                                - bridge                                                                                                                                                                - macvlan                                                                                                                                                               - ipvlan                                                                                                                                                                volume:                                                                                                                                                                 - local                                                                                                                                                               registries:                                                                                                                                                               search:                                                                                                                                                                 - registry.access.redhat.com                                                                                                                                            - registry.redhat.io                                                                                                                                                    - docker.io                                                                                                                                                           store:                                                                                                                                                                    configFile: /home/user/.config/containers/storage.conf                                                                                                                  containerStore:                                                                                                                                                           number: 8                                                                                                                                                               paused: 0                                                                                                                                                               running: 7                                                                                                                                                              stopped: 1                                                                                                                                                            graphDriverName: overlay                                                                                                                                                graphOptions: {}                                                                                                                                                        graphRoot: /home/user/.local/share/containers/storage                                                                                                                   graphRootAllocated: 235732176896                                                                                                                                        graphRootUsed: 88643289088                                                                                                                                              graphStatus:                                                                                                                                                              Backing Filesystem: extfs                                                                                                                                               Native Overlay Diff: "true"                                                                                                                                             Supports d_type: "true"                                                                                                                                                 Supports shifting: "false"                                                                                                                                              Supports volatile: "true"                                                                                                                                               Using metacopy: "false"                                                                                                                                               imageCopyTmpDir: /var/tmp                                                                                                                                               imageStore:                                                                                                                                                               number: 15 
plugins:                                                                                                                                                                  authorization: null                                                                                                                                                     log:                                                                                                                                                                    - k8s-file                                                                                                                                                              - none                                                                                                                                                                  - passthrough                                                                                                                                                           - journald                                                                                                                                                              network:                                                                                                                                                                - bridge                                                                                                                                                                - macvlan                                                                                                                                                               - ipvlan                                                                                                                                                                volume:                                                                                                                                                                 - local                                                                                                                                                               registries:                                                                                                                                                               search:                                                                                                                                                                 - registry.access.redhat.com                                                                                                                                            - registry.redhat.io                                                                                                                                                    - docker.io                                                                                                                                                           store:                                                                                                                                                                    configFile: /home/user/.config/containers/storage.conf                                                                                                                  containerStore:                                                                                                                                                           number: 8                                                                                                                                                               paused: 0                                                                                                                                                               running: 7                                                                                                                                                              stopped: 1                                                                                                                                                            graphDriverName: overlay                                                                                                                                                graphOptions: {}                                                                                                                                                        graphRoot: /home/user/.local/share/containers/storage                                                                                                                   graphRootAllocated: 235732176896                                                                                                                                        graphRootUsed: 88643289088                                                                                                                                              graphStatus:                                                                                                                                                              Backing Filesystem: extfs                                                                                                                                               Native Overlay Diff: "true"                                                                                                                                             Supports d_type: "true"                                                                                                                                                 Supports shifting: "false"                                                                                                                                              Supports volatile: "true"                                                                                                                                               Using metacopy: "false"                                                                                                                                               imageCopyTmpDir: /var/tmp                                                                                                                                               imageStore:                                                                                                                                                               number: 15

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.stale-issuetriagedIssue has been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions