Display Podman system information

View comprehensive system information and disk usage for Podman by using the podman system command. This helps you monitor storage consumption and verify environment details.

Before you begin

  • The container-tools meta-package is installed.

Procedure

Display Podman system information:
  • To show Podman disk usage, enter:
    $ podman system df
    TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
    Images         3           2           1.085GB     233.4MB (0%)
    Containers     2           0           28.17kB     28.17kB (100%)
    Local Volumes  3           0           0B          0B (0%)
  • To show detailed information about space usage, enter:
    $ podman system df -v
    Images space usage:
    
    REPOSITORY                                TAG         IMAGE ID      CREATED     SIZE        SHARED SIZE  UNIQUE SIZE  CONTAINERS
    registry.access.redhat.com/ubi10           latest      b1e63aaae5cf  13 days     233.4MB     233.4MB      0B           0
    registry.access.redhat.com/ubi10/httpd-24  latest      0d04740850e8  13 days     461.5MB     0B           461.5MB      1
    registry.redhat.io/rhel8/podman           latest      dce10f591a2d  13 days     390.6MB     233.4MB      157.2MB      1
    
    Containers space usage:
    
    CONTAINER ID  IMAGE         COMMAND                     LOCAL VOLUMES  SIZE        CREATED     STATUS      NAMES
    311180ab99fb  0d04740850e8  /usr/bin/run-httpd          0              28.17kB     16 hours    exited      hc1
    bedb6c287ed6  dce10f591a2d  podman run ubi10 echo hello  0              0B          11 hours    configured  dazzling_tu
    
    Local Volumes space usage:
    
    VOLUME NAME                                                       LINKS       SIZE
    76de0efa83a3dae1a388b9e9e67161d28187e093955df185ea228ad0b3e435d0  0           0B
    8a1b4658aecc9ff38711a2c7f2da6de192c5b1e753bb7e3b25e9bf3bb7da8b13  0           0B
    d9cab4f6ccbcf2ac3cd750d2efff9d2b0f29411d430a119210dd242e8be20e26  0           0B
  • To display information about the host, current storage stats, and build of Podman, enter:
    $ podman system info
    host:
      arch: amd64
      buildahVersion: 1.22.3
      cgroupControllers: []
      cgroupManager: cgroupfs
      cgroupVersion: v2
      conmon:
        package: conmon-2.0.29-1.module+el8.5.0+12381+e822eb26.x86_64
        path: /usr/bin/conmon
        version: 'conmon version 2.0.29, commit: 7d0fa63455025991c2fc641da85922fde889c91b'
      cpus: 2
      distribution:
        distribution: '"rhel"'
        version: "8.5"
      eventLogger: file
      hostname: localhost.localdomain
      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: 4.18.0-323.el8.x86_64
      linkmode: dynamic
      memFree: 352288768
      memTotal: 2819129344
      ociRuntime:
        name: runc
        package: runc-1.0.2-1.module+el8.5.0+12381+e822eb26.x86_64
        path: /usr/bin/runc
        version: |-
          runc version 1.0.2
          spec: 1.0.2-dev
          go: go1.16.7
          libseccomp: 2.5.1
      os: linux
      remoteSocket:
        path: /run/user/1000/podman/podman.sock
      security:
        apparmorEnabled: false
        capabilities: CAP_NET_RAW,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
    registries:
      search:
      - registry.fedoraproject.org
      - registry.access.redhat.com
      - registry.centos.org
      - docker.io
    store:
      configFile: /home/user/.config/containers/storage.conf
      containerStore:
        number: 2
        paused: 0
        running: 0
        stopped: 2
      graphDriverName: overlay
      graphOptions:
        overlay.mount_program:
          Executable: /usr/bin/fuse-overlayfs
          Package: fuse-overlayfs-1.7.1-1.module+el8.5.0+12381+e822eb26.x86_64
          Version: |-
            fusermount3 version: 3.2.1
            fuse-overlayfs: version 1.7.1
            FUSE library version 3.2.1
            using FUSE kernel interface version 7.26
      graphRoot: /home/user/.local/share/containers/storage
      graphStatus:
        Backing Filesystem: xfs
        Native Overlay Diff: "false"
        Supports d_type: "true"
        Using metacopy: "false"
      imageStore:
        number: 3
      runRoot: /run/user/1000/containers
      volumePath: /home/user/.local/share/containers/storage/volumes
    version:
      APIVersion: 3.3.1
      Built: 1630360721
      BuiltTime: Mon Aug 30 23:58:41 2021
      GitCommit: ""
      GoVersion: go1.16.7
      OsArch: linux/amd64
      Version: 3.3.1
  • To remove all unused containers, images and volume data, enter:
    $ podman system prune
    WARNING! This will remove:
            - all stopped containers
            - all stopped pods
            - all dangling images
            - all build cache
    Are you sure you want to continue? [y/N] y

    The podman system prune command removes all unused containers (both dangling and unreferenced), pods, and optionally, volumes from local storage. Use the --all option to delete all unused images, including dangling images and any image that does not have any containers based on it. To prune volumes, use the --volume option; by default, volumes are not removed to prevent the deletion of important data if no container is currently using the volume.

    For more information, see the podman-system-df, podman-system-info, and podman-system-prune man pages on your system.