Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
Last active August 12, 2023 09:02
Show Gist options
  • Save valyakuttan/51533486f96ad0c7f6bf91779445bf0d to your computer and use it in GitHub Desktop.
Save valyakuttan/51533486f96ad0c7f6bf91779445bf0d to your computer and use it in GitHub Desktop.
Podman Command Reference

Frequently used podman commands

  1. Add an additional name to a local image

         $ podman tag 0e3bbc2 fedora:latest
  2. Display the running processes of a container

         $ podman top f5a62a71b07
  3. Stop a container by its name

         $ podman stop mywebserver
  4. Start a container by its name

         $ podman start mywebserver
  5. Remove a locally stored image by its ID

         $ podman rmi c0ed59d05fe7
  6. Remove container with a given name

         $ podman rm mywebserver
  7. Pull an image from a registry

         $ podman pull docker://quay.io/username/myimage
  8. Print out information about containers

         $ podman ps -a
  9. List all images in local storage

         $ podman images -a
  10. Show podman disk usage

         $ podman system df
  11. Display Podman related system information

         $ podman system info
  12. Reset storage back to initial state

         $ podman system reset
  13. Remove all unused pods, containers, images, networks, and volume data

         $ podman system prune --all --force --volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment