Clear your podman images

Podman images tend to take a lot of space on my machine, and my disk ends up being full. Here is how to inspect and clean things:

# before
$ podman system df
TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
Images         389         38          90.25GB     82.8GB (92%)
Containers     25          0           745.6MB     745.6MB (100%)
Local Volumes  4           2           19.82GB     0B (0%)

$ podman system prune -a
WARNING! This command removes:
        - all stopped containers
        - all networks not used by at least one container
        - all images without at least one container associated with them
        - all build cache

Are you sure you want to continue? [y/N] y

# after
$ podman system df
TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
Images         29          29          2.17GB      2.15GB (99%)
Containers     0           0           0B          0B (0%)
Local Volumes  4           0           19.82GB     19.82GB (100%)

Published on 2025-10-09 #podman - In code