Skip to content

podman Facts

podman.PodmanImages

host.get_fact(PodmanImages)

Returns a list of all container images. This is equivalent to podman image ls --all.

[
    {
        "Id": "d529dd0c...",
        "ParentId": "",
        "RepoTags": null,
        "RepoDigests": [
            "docker.io/library/alpine@sha256:28bd5fe8...",
            "docker.io/library/alpine@sha256:79ff19e9..."
        ],
        "Size": 8709729,
        "SharedSize": 0,
        "VirtualSize": 8709729,
        "Labels": null,
        "Containers": 0,
        "Digest": "sha256:28bd5fe8...",
        "History": [
            "docker.io/library/alpine:3.24",
            "docker.io/library/alpine:latest"
        ],
        "Names": [
            "docker.io/library/alpine:latest",
            "docker.io/library/alpine:3.24"
        ],
        "Created": 1781568089,
        "CreatedAt": "2026-06-16T00:01:29Z"
    }
]

podman.PodmanNetworks

host.get_fact(PodmanNetworks)

Returns a list of all podman networks. This is equivalent to podman network ls.

[
    {
        "name": "podman",
        "id": "2f259bab...",
        "driver": "bridge",
        "network_interface": "podman0",
        "created": "2026-07-25T17:51:57.975124805+02:00",
        "subnets": [
            {
                "subnet": "10.88.0.0/16",
                "gateway": "10.88.0.1"
            }
        ],
        "ipv6_enabled": false,
        "internal": false,
        "dns_enabled": false,
        "ipam_options": {
            "driver": "host-local"
        }
    }
]

podman.PodmanPods

host.get_fact(PodmanPods)

Returns a list of all pods. This is equivalent to podman pod ps.

[
    {
        "Cgroup": "user.slice",
        "Containers": [
            {
                "Id": "7787b95b...",
                "Names": "qdrant",
                "Status": "exited",
                "RestartCount": 0
            }
        ],
        "Created": "2026-05-08T14:29:50.634923891+02:00",
        "Id": "1c8e9eccf...",
        "InfraId": "",
        "Name": "pod_qdrant",
        "Namespace": "",
        "Networks": [],
        "Status": "Exited",
        "Labels": {}
    }
]

podman.PodmanPs

host.get_fact(PodmanPs)

Returns a list of all containers. This is equivalent to podman ps --all.

[
    {
        "AutoRemove": true,
        "Command": [
            "bash"
        ],
        "CreatedAt": "24 seconds ago",
        "CIDFile": "",
        "Exited": false,
        "ExitedAt": -62135596800,
        "ExitCode": 0,
        "ExposedPorts": null,
        "Id": "3b2f3186...",
        "Image": "docker.io/library/bash:latest",
        "ImageID": "bc60f0547...",
        "IsInfra": false,
        "Labels": null,
        "Mounts": [],
        "Names": [
            "hardcore_darwin"
        ],
        "Namespaces": {},
        "Networks": [],
        "Pid": 65638,
        "Pod": "",
        "PodName": "",
        "Ports": null,
        "Restarts": 0,
        "Size": null,
        "StartedAt": 1785003868,
        "State": "running",
        "Status": "Up 24 seconds",
        "Created": 1785003868
    }
]

podman.PodmanQuadlets

host.get_fact(PodmanQuadlets)

Returns a list of podman quadlets. This is equivalent to podman quadlet list.

Note: Available since Podman v5.6.0. This version constraint is NOT checked automatically.

[
    {
        "Name": "grafana-data.volume",
        "UnitName": "grafana-data-volume.service",
        "Path": "/home/user/.config/containers/systemd/grafana-data.volume",
        "Status": "active/exited",
        "App": ""
    },
    {
        "Name": "grafana.container",
        "UnitName": "grafana.service",
        "Path": "/home/user/.config/containers/systemd/grafana.container",
        "Status": "active/running",
        "App": ""
    }
]

podman.PodmanSystemInfo

host.get_fact(PodmanSystemInfo)

Returns the podman system information This is equivalent to podman system info.

podman.PodmanVolumes

host.get_fact(PodmanVolumes)

Returns a list of all volumes. This is equivalent to podman volume ls.

[
    {
        "Name": "postgres_data",
        "Driver": "local",
        "Mountpoint": "/home/user/.local/share/containers/storage/volumes/postgres_data/_data",
        "CreatedAt": "2026-05-07T20:13:33.435751494+02:00",
        "Labels": {
            "com.docker.compose.project": "postgres",
            "io.podman.compose.project": "postgres"
        },
        "Scope": "local",
        "Options": {},
        "MountCount": 0,
        "NeedsCopyUp": true,
        "LockNumber": 1
    }
]