This article will cover some useful podman commands that i found as i was working my way from Docker to Podman.
Removing and Reviewing Dangling Images
Lets first review dangling images by running:
podman images --filter "dangling=true"
Now lets remove all dangling images by running:
podman system prune --all --force
Careful the force will remove everything that is considered “dangling”.
Pushing an Image to an OCI standard Tarball
This is good when using Trivy to scan for Common Vunerbilities and Exposures (CVE)s.
podman push <container id or name> oci:<location><tar name>.tar