Photo by Jene Yeo on Unsplash

Useful Podman Commands

This article will cover some useful podman commands that i found as i was working my way from Docker to Podman.

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”.

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store