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.

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

--

--

βš— Kevin Summersill πŸ”‹

Enterprise Solution Architect | Certified K8s Administrator/Developer βš“ | SAFe SPC | Cert Terraform | AWS Solutions Architect | Dev*Ops/GitOps Engineer πŸ”₯