SadServers
  • Scenarios
  • Labs
    All Labs Linux & Bash Web Servers Databases Data Processing Docker Kubernetes CI/CD Infrastructure as Code Tooling / Applications
  • Dashboard
  • Solutions
    For Individuals For Businesses
  • Ranking
  • Newsletter
  • Documentation
    FAQ Support Pro Accounts Pro+ Accounts Business Accounts Gift API CLI/TUI Privacy Troubleshooting Interviews
  • Blog
  • Pricing
  • Gift
    Gift Purchase Gift Redeem
  • About
Log In - Sign Up
  1. Labs
  2. Podman
  3. Cheatsheet

Guide

Concepts and learning path

Troubleshooting

Failure modes and fixes

Cheatsheet

Commands to keep handy

Podman cheatsheet

Images and containers

CommandDescription
podman pull nginx:alpinePull image
podman imagesList images
podman run -d --name web -p 8080:80 nginxRun detached, publish port
podman ps -aAll containers
podman logs -f webFollow logs
podman exec -it web shShell in container
podman stop web && podman rm webStop and remove
podman build -t myapp:1.0 .Build from Containerfile/Dockerfile

Info and inspect

CommandDescription
podman infoRuntime, storage, rootless mode
podman versionClient and engine versions
podman inspect web | jq -r '.[0].State.Status'Container status
podman inspect web | jq -r '.[0].State.ExitCode'Exit code
podman port webPublished ports

Volumes and networks

CommandDescription
podman volume lsList volumes
podman run -v ./data:/data:Z myappBind mount (SELinux :Z)
podman network lsList networks
podman network inspect podmanDefault network details

Pods

podman pod create --name mypod -p 8080:80 podman run -d --pod mypod --name c1 nginx podman pod ps podman pod stop mypod podman pod rm mypod

Compose and kube

podman compose up -d podman compose ps podman compose down podman play kube deployment.yaml podman kube generate mycontainer > pod.yaml

systemd and Quadlet

podman generate systemd --name web --files --new systemctl --user enable --now container-web.service # Quadlet: /etc/containers/systemd/myapp.container # systemctl daemon-reload && systemctl start myapp.service

Rootless and storage

CommandDescription
podman info | grep -i rootlessRootless mode?
cat /etc/subuid /etc/subgidUID/GID maps for rootless
podman system dfDisk usage
podman system prune -aRemove unused data

Skopeo (images without running)

CommandDescription
skopeo inspect docker://nginx:alpineRemote image metadata
skopeo copy docker://src destCopy between registries/storage

Docker CLI alias

alias docker=podman # many scripts work unchanged podman --version

Pro tips

  • No daemon — podman ps works even when no "docker service" is running
  • Rootless: storage under ~/.local/share/containers/; use loginctl enable-linger for user services at boot
  • On RHEL/Fedora use :Z on volume mounts when SELinux denies access
  • podman machine runs a Linux VM on macOS/Windows (like Docker Desktop's VM)
  • Shared container basics: Docker lab

Practice scenarios

Hands-on Podman scenarios on live Linux VMs: podman

SadServersSadServers

Real-world Linux and DevOps scenarios for hands-on learning and technical assessment.

Uptime Robot ratio (30 days)
Product
  • Scenarios
  • For Individuals
  • For Businesses
  • Pricing
Resources
  • FAQ
  • Blog
  • Newsletter
Company
  • About Us
  • Support
  • Privacy Policy
  • Terms of Service
  • Contact
Connect With Us
info@sadservers.com

Made in Canada 🇨🇦
Updated: 2026-06-13 16:06 UTC – 2d2950a