Installation & Setup
Install Podman
1# Ubuntu / Debian2sudo apt update3sudo apt install -y podman4
5# Fedora6sudo dnf install -y podman7
8# macOS (Homebrew — installs a lightweight Linux VM via Podman Machine)9brew install podman10podman machine init11podman machine start12
13# Verify installation14podman --version15podman infoRootless Setup (Linux)
1# Enable user namespaces (required on some distros)2sudo sysctl -w user.max_user_namespaces=286333
4# Ensure subuid/subgid mappings exist for your user5grep $USER /etc/subuid6grep $USER /etc/subgid7# If missing:8sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 $USER9
10# Test rootless11podman run --rm hello-worldShell Autocomplete
1# Bash2mkdir -p ~/.local/share/bash-completion/completions3podman completion bash > ~/.local/share/bash-completion/completions/podman4
5# Zsh6mkdir -p ~/.zsh/completions7podman completion zsh > ~/.zsh/completions/_podman8echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc9echo 'autoload -Uz compinit && compinit' >> ~/.zshrc10
11# Fish12mkdir -p ~/.config/fish/completions13podman completion fish > ~/.config/fish/completions/podman.fishUseful Aliases
1alias p=podman2alias pps='podman ps'3alias ppsa='podman ps -a'4alias pi='podman images'5alias pex='podman exec -it'6alias plogs='podman logs -f'7alias prm='podman rm'8alias prmi='podman rmi'9alias pdn='podman run -d --name'10
11# Docker compatibility alias12alias docker=podman13alias docker-compose=podman-composeImportant Paths & Config Files
Configuration
1~/.config/containers/ # User-level config directory2~/.config/containers/containers.conf # Main user config3~/.config/containers/storage.conf # Storage driver config4~/.config/containers/registries.conf # Registry mirrors & search5~/.config/containers/policy.json # Image signature policy6/etc/containers/containers.conf # System-wide config7/etc/containers/storage.conf # System-wide storage config8/etc/containers/registries.conf # System-wide registries9/etc/containers/registries.d/ # Registry credential configsData & Storage Paths
1~/.local/share/containers/storage/ # Rootless storage root2/var/lib/containers/storage/ # Rootful storage root3~/.local/share/containers/storage/overlay/ # OverlayFS layers (rootless)4~/.local/share/containers/storage/volumes/ # Named volumes (rootless)5~/.local/share/containers/storage/libpod/ # Container runtime state6~/.local/share/containers/storage/tmp/ # Temporary build filesMachine Paths (macOS / WSL)
1~/.local/share/containers/podman/machine/ # Podman Machine VM images2~/.config/containers/podman/machine/ # Machine config & socketsLog Locations
1# Podman does not store container logs to files by default.2# Use journal logging or the k8s-file driver:3
4# View logs via CLI5podman logs <container>6
7# Configure journald logging (default on systemd hosts)8# In containers.conf:9# [containers]10# log_driver = "journald"11
12# Configure k8s-file logging (default for rootless)13# [containers]14# log_driver = "k8s-file"15# Log files at:16# ~/.local/share/containers/storage/overlay-containers/<id>/userdata/ctr.logEnvironment Variables
1CONTAINERS_CONF=~/.config/containers/containers.conf # Override config path2CONTAINERS_STORAGE_CONF=~/.config/containers/storage.conf # Override storage config3CONTAINER_REGISTRIES_CONF=~/.config/containers/registries.conf # Override registries4PODMAN_USERNS="keep-id" # Map host UID to container UID5PODMAN_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock # Remote connectionSystem & Info
Podman System Commands
1podman version # Client and server version2podman info # System-wide information3podman system df # Show disk usage4podman system df -v # Verbose disk usage5podman system info # Same as podman info6podman system prune # Remove unused data7podman system prune -a # Also remove unused images8podman system prune -a --volumes # Remove everything unused9podman system reset # DANGER: remove ALL podman data10podman system service # Start Podman API service (REST)11podman system service --time=0 & # Run service indefinitely (background)12podman machine list # List Podman Machines (macOS/WSL)13podman machine inspect # Show machine detailsContainer Lifecycle
Run Containers
1podman run nginx # Run container (foreground)2podman run -d nginx # Run in detached mode3podman run -d --name my-nginx nginx # Run with custom name4podman run -d -p 8080:80 nginx # Map host port 8080 → container 805podman run -d -p 127.0.0.1:8080:80 nginx # Bind to specific interface6podman run -it ubuntu /bin/bash # Interactive shell7podman run --rm alpine echo "hello" # Remove container after exit8podman run -d --restart=unless-stopped nginx # Restart policy9podman run -d -e MY_VAR=value nginx # Set environment variable10podman run -d --env-file .env nginx # Load env vars from file11podman run -d -v mydata:/data nginx # Mount named volume12podman run -d -v $(pwd):/app nginx # Bind mount current directory13podman run -d --network my-net nginx # Connect to specific network14podman run --memory=512m --cpus=1.5 nginx # Set resource limits15podman run -d -w /app node:20 npm start # Set working directory16podman run -d --user 1000:1000 nginx # Run as specific user/group17podman run -d --read-only nginx # Read-only root filesystem18podman run -d --pod my-pod nginx # Run inside a pod19podman run --userns=keep-id -v $(pwd):/app dev # Keep host UID mappingList Containers
1podman ps # List running containers2podman ps -a # List all containers (including stopped)3podman ps -q # List only container IDs4podman ps -s # Show container sizes5podman ps -l # Show last created container6podman ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" # Custom format7podman ps -f status=exited # Filter by status8podman ps -f name=my-app # Filter by name9podman ps -f ancestor=nginx # Filter by image10podman container ls # Same as podman psStart / Stop / Restart
1podman start my-container # Start a stopped container2podman start -ai my-container # Start and attach with interactive TTY3podman stop my-container # Graceful stop (SIGTERM → SIGKILL after 10s)4podman stop -t 30 my-container # Custom grace period (30 seconds)5podman restart my-container # Restart container6podman pause my-container # Pause all processes (freeze)7podman unpause my-container # Unpause container8podman kill my-container # Force stop (SIGKILL)9podman kill -s SIGHUP my-container # Send specific signal10podman wait my-container # Block until container stops, print exit codeRemove Containers
1podman rm my-container # Remove a stopped container2podman rm -f my-container # Force remove (even if running)3podman rm -v my-container # Remove with associated anonymous volumes4podman rm $(podman ps -aq) # Remove all stopped containers5podman container prune # Remove all stopped containers6podman container prune -f # Remove without confirmationExecute Commands in Running Containers
1podman exec my-container ls / # Run command in container2podman exec -it my-container /bin/sh # Interactive shell3podman exec -it my-container /bin/bash # Interactive bash4podman exec -it -u root my-container sh # Exec as root5podman exec -e MY_VAR=value my-container env # With environment variable6podman exec -w /app my-container pwd # With working directoryInspect Containers
1podman inspect my-container # Full container details (JSON)2podman inspect -f '{{.State.Status}}' my-container # Get specific field3podman inspect -f '{{.NetworkSettings.IPAddress}}' my-container # Get container IP4podman inspect -f '{{.HostConfig.RestartPolicy.Name}}' my-container # Get restart policy5podman inspect -f '{{json .Mounts}}' my-container # Volume mounts (JSON)6podman stats # Live resource usage (CPU, memory, I/O)7podman stats --no-stream # One-time snapshot8podman stats my-container # Stats for specific container9podman top my-container # Running processes inside container10podman diff my-container # Changed files in container filesystem11podman port my-container # Show port mappingsCopy Files
1podman cp file.txt my-container:/tmp/file.txt # Host → Container2podman cp my-container:/tmp/file.txt ./file.txt # Container → Host3podman cp my-container:/var/log/ ./logs/ # Copy directoryImage Management
List & Search Images
1podman images # List local images2podman images -a # Include intermediate images3podman images -q # IDs only4podman images --digests # Show digests5podman images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" # Custom format6podman images --filter dangling=true # Show dangling images7podman images --filter reference=nginx # Filter by name8podman search nginx # Search registries9podman search --limit 5 nginx # Limit search results10podman search --filter is-official=true nginx # Official images onlyPull & Push Images
1podman pull nginx # Pull latest tag2podman pull nginx:1.27 # Pull specific tag3podman pull nginx:1.27@sha256:abc... # Pull by digest4podman pull --all-tags nginx # Pull all tags5podman push myuser/myimage:latest # Push to registry6podman push myuser/myimage:v1.0 # Push specific tagBuild Images
1podman build -t myapp:latest . # Build from Containerfile/Dockerfile2podman build -t myapp:v1.0 -f Containerfile.prod . # Use specific file3podman build --no-cache -t myapp . # Build without cache4podman build --build-arg VERSION=1.0 -t myapp . # Pass build argument5podman build --target builder -t myapp . # Multi-stage: specific target6podman build --platform linux/amd64 -t myapp . # Build for specific platform7podman build --platform linux/amd64,linux/arm64 -t myuser/myapp --manifest myuser/myapp . # Multi-arch manifestTag & Remove Images
1podman tag myapp:latest myuser/myapp:v1.0 # Tag an image2podman tag myapp:latest registry.example.com/myapp:v1.0 # Tag for private registry3podman rmi myapp:latest # Remove an image4podman rmi $(podman images -q) # Remove all images5podman rmi $(podman images -f dangling=true -q) # Remove dangling images6podman image prune # Remove dangling images7podman image prune -a # Remove all unused imagesSave & Load Images (Offline Transfer)
1podman save -o myapp.tar myapp:latest # Export image to tar file2podman save myapp:latest | gzip > myapp.tar.gz # Export compressed3podman load -i myapp.tar # Import image from tar file4podman load < myapp.tar.gz # Import compressed5podman export my-container > container.tar # Export container filesystem6podman import container.tar myimage:latest # Import as imageImage History & Layers
1podman history myapp:latest # Show image layers and commands2podman history --no-trunc myapp # Full command output (not truncated)3podman manifest inspect nginx:latest # Inspect image manifest (multi-arch info)Pod Management
Podman's unique feature — pods group related containers sharing network namespaces (like Kubernetes pods).
Basic Pod Commands
1podman pod create --name my-pod # Create an empty pod2podman pod create --name my-pod -p 8080:80 # Create pod with port mapping3podman pod create --name my-pod --share net # Create pod sharing network only4podman pod ls # List all pods5podman pod ps # Same as podman pod ls6podman pod inspect my-pod # Show pod details7podman pod start my-pod # Start all containers in pod8podman pod stop my-pod # Stop all containers in pod9podman pod restart my-pod # Restart all containers in pod10podman pod rm my-pod # Remove pod (must be stopped)11podman pod rm -f my-pod # Force remove pod12podman pod prune # Remove all stopped pods13podman pod top my-pod # Show processes in pod14podman pod stats # Live resource stats for all pods15podman pod logs my-pod # Logs from all containers in podRun Containers Inside Pods
1# Create pod and run first container (creates the pod automatically)2podman run -d --name web -p 8080:80 --pod new:my-pod nginx3
4# Add container to existing pod5podman run -d --name redis --pod my-pod redis:alpine6
7# Run command in a pod container8podman exec -it my-pod web /bin/shVolumes
Manage Volumes
1podman volume create mydata # Create a named volume2podman volume ls # List all volumes3podman volume inspect mydata # Show volume details (mountpoint, driver)4podman volume rm mydata # Remove a volume5podman volume rm $(podman volume ls -q) # Remove all volumes6podman volume prune # Remove all unused volumes7podman volume prune -f # Remove without confirmationUsing Volumes with Containers
1# Named volume2podman run -d -v mydata:/var/lib/data postgres3
4# Bind mount (host directory)5podman run -d -v /host/path:/container/path nginx6
7# Read-only mount8podman run -d -v mydata:/data:ro nginx9
10# tmpfs mount (in-memory, Linux only)11podman run -d --tmpfs /tmp:rw,size=100m nginx12
13# Mount syntax (modern — preferred)14podman run -d --mount source=mydata,target=/data nginx15podman run -d --mount type=bind,source=$(pwd),target=/app nginx16podman run -d --mount type=tmpfs,target=/tmp,tmpfs-size=100m nginx17
18# SELinux-labeled mounts (RHEL/Fedora)19podman run -d -v mydata:/data:Z nginx # Private unshared label20podman run -d -v mydata:/data:z nginx # Shared labelNetworks
Manage Networks
1podman network create my-net # Create bridge network2podman network create --driver bridge my-net # Explicit bridge driver3podman network create --subnet=172.20.0.0/16 my-net # Custom subnet4podman network ls # List all networks5podman network inspect my-net # Show network details6podman network rm my-net # Remove a network7podman network prune # Remove all unused networksConnect & Disconnect Containers
1podman network connect my-net my-container # Add container to network2podman network disconnect my-net my-container # Remove container from network3
4# Run container on specific network5podman run -d --network my-net --name app1 nginx6
7# Container DNS — containers on same user-defined network resolve each other by name8podman run -d --network my-net --name db postgres9podman run -d --network my-net --name app nginx10# Inside "app": ping db → resolves to the db container's IPDefault Network Drivers
| Driver | Description |
|---|---|
bridge | Default. Isolated network on a single host |
host | Container shares host network (no isolation) |
none | No networking |
macvlan | Assign MAC address, appear as physical device |
slirp4netns | User-mode networking for rootless containers |
pasta | High-performance rootless networking (default in recent Podman) |
Logs & Debugging
Container Logs
1podman logs my-container # Show all logs (stdout + stderr)2podman logs -f my-container # Follow/stream logs3podman logs --tail 100 my-container # Last 100 lines4podman logs --since 1h my-container # Logs from last hour5podman logs --since 30m my-container # Logs from last 30 minutes6podman logs -t my-container # Show timestamps7podman logs my-container 2>&1 | grep "error" # Filter logs with grepDebugging Containers
1# Inspect container state2podman inspect my-container3podman inspect -f '{{.State.ExitCode}}' my-container # Check exit code4podman inspect -f '{{.State.OOMKilled}}' my-container # Check if OOM killed5
6# Resource usage7podman stats # Live CPU, memory, I/O8podman top my-container # Show running processes9podman diff my-container # Show filesystem changes10
11# Debug with temporary container12podman run --rm -it --network container:my-container nicolaka/netshoot # Network debugging13podman run --rm -it --pid container:my-container busybox ps aux # Process debugging14
15# Generate a Kubernetes YAML from a running container16podman generate kube my-container > pod.yaml17
18# Generate YAML for a pod19podman generate kube my-pod > pod.yamlTroubleshooting Checklist
1# Container won't start?2podman logs my-container # Check application logs3podman inspect my-container # Check State.Error and State.ExitCode4
5# Rootless permission issues?6podman unshare cat /proc/self/uid_map # Check user namespace mapping7podman info | grep rootless # Verify rootless mode8
9# Can't connect to container?10podman port my-container # Verify port mappings11podman inspect -f '{{.NetworkSettings.IPAddress}}' my-container # Get container IP12podman network inspect bridge # Check network config13
14# Disk space issues?15podman system df # Check disk usage16podman system prune -a --volumes # Clean up everything unused17
18# SELinux denials?19sudo ausearch -m avc --recent # Check recent SELinux denials20sudo setsebool -P container_manage_cgroup true # Fix cgroup issues21
22# DNS resolution issues in rootless?23podman run --rm alpine nslookup google.com # Test DNS inside container24cat /etc/resolv.conf # Check host DNS configPodman Compose
Basic Commands
1# Install podman-compose2pip install podman-compose3# OR on macOS4brew install podman-compose5
6podman-compose up # Start all services (foreground)7podman-compose up -d # Start in detached mode8podman-compose up -d --build # Build images before starting9podman-compose up -d --force-recreate # Recreate containers even if unchanged10podman-compose down # Stop and remove containers, networks11podman-compose down -v # Also remove volumes12podman-compose stop # Stop services (don't remove)13podman-compose start # Start stopped services14podman-compose restart # Restart all services15podman-compose restart web # Restart specific serviceBuild & Images
1podman-compose build # Build all services2podman-compose build web # Build specific service3podman-compose build --no-cache # Build without cache4podman-compose pull # Pull all service imagesStatus & Logs
1podman-compose ps # List running services2podman-compose ps -a # List all services3podman-compose logs # View logs from all services4podman-compose logs -f # Follow logs5podman-compose logs web # Logs for specific service6podman-compose logs --tail 50 web # Last 50 linesExecute & Run
1podman-compose exec web sh # Shell into running service2podman-compose exec web bash # Bash into running service3podman-compose exec -u root web sh # Shell as root4podman-compose run web npm test # Run one-off command5podman-compose run --rm web npm test # Run and remove afterRegistry & Login
Authentication
1podman login # Login to Docker Hub (interactive)2podman login -u myuser # Login with username3podman login registry.example.com # Login to private registry4podman logout # Logout from Docker Hub5podman logout registry.example.com # Logout from private registryCredential Helpers
1# Usepass (recommended)2podman login --authfile ~/.docker/config.json3
4# Skopeo for image inspection (works with Podman)5skopeo inspect docker://nginx:latest6skopeo inspect docker://registry.example.com/myapp:v1.0Working with Registries
1# Docker Hub2podman pull nginx:latest3podman push myuser/myapp:v1.04
5# Private registry6podman pull registry.example.com/myapp:latest7podman push registry.example.com/myapp:latest8
9# Run a local registry10podman run -d -p 5000:5000 --name registry registry:211podman tag myapp localhost:5000/myapp:latest12podman push localhost:5000/myapp:latest13
14# Copy images between registries (using skopeo)15skopeo copy docker://nginx:latest docker://registry.example.com/nginx:latest16skopeo copy docker-archive:myapp.tar docker://registry.example.com/myapp:latestPodman Machine (macOS / WSL)
Podman Machine creates and manages a lightweight Linux VM for rootless Podman on non-Linux hosts.
1podman machine init # Create a new machine2podman machine init --cpus 4 --memory 8192 --disk-size 100 # Custom resources3podman machine list # List machines4podman machine start # Start the machine5podman machine stop # Stop the machine6podman machine rm # Remove the machine7podman machine ssh # SSH into the machine8podman machine ssh -- ls /etc/os-release # Run command on machine9podman machine inspect # Show machine details10podman machine stop && podman machine start # Restart machine11podman machine set --cpus 2 # Update machine resourcesmacOS-Specific Tips
1# The machine creates a Docker-compatible socket2export DOCKER_HOST=unix://$HOME/.local/share/containers/podman/machine/podman/podman.sock3
4# Enable Docker compatibility (auto-sets DOCKER_HOST)5podman machine set --docker-host6
7# Podman Machine uses QEMU or Apple Virtualization on macOS8# For best performance on Apple Silicon, use the default Apple VZ driver9podman machine init --user-mode-networking # Use user-mode networking (recommended)Containerfile Quick Reference
Podman uses Containerfile (preferred) or Dockerfile interchangeably.
Common Instructions
| Instruction | Description |
|---|---|
FROM | Base image |
WORKDIR | Set working directory |
COPY | Copy files from host to image |
ADD | Copy files (supports URLs and tar extraction) |
RUN | Execute command during build |
CMD | Default command when container starts |
ENTRYPOINT | Main executable (CMD becomes arguments) |
ENV | Set environment variable |
ARG | Build-time variable |
EXPOSE | Document which ports the container listens on |
VOLUME | Create mount point for volumes |
USER | Set user for subsequent instructions |
LABEL | Add metadata to image |
HEALTHCHECK | Define health check command |
.containerignore | Exclude files from build context |
Example Multi-Stage Containerfile
1# Build stage2FROM node:20-alpine AS builder3WORKDIR /app4COPY package*.json ./5RUN npm ci6COPY . .7RUN npm run build8
9# Production stage10FROM node:20-alpine11WORKDIR /app12COPY /app/dist ./dist13COPY /app/node_modules ./node_modules14EXPOSE 300015USER node16CMD ["node", "dist/index.js"]Quadlet (Systemd Integration)
Quadlet generates systemd units from container definitions — the recommended way to manage Podman containers as system services.
Quadlet File Locations
1# User services2~/.config/containers/systemd/3
4# System services5/etc/containers/systemd/6
7# Generator (auto-generates units from .container/.volume/.network files)8# Located in /usr/lib/systemd/system-generators/podman-system-generatorExample: Web App Service
1# ~/.config/containers/systemd/webapp.container2[Container]3Image=docker.io/library/nginx:latest4PublishPort=8080:805Volume=webapp-data.volume:/usr/share/nginx/html:ro6Network=webapp.network7AutoUpdate=registry8
9[Service]10Restart=always11
12[Install]13WantedBy=default.targetExample: Volume & Network
1# ~/.config/containers/systemd/webapp.volume2[Volume]3VolumeName=webapp-data4
5# ~/.config/containers/systemd/webapp.network6[Network]7NetworkName=webapp8Subnet=172.30.0.0/24Systemd Commands
1# After placing .container files:2systemctl daemon-reload --user3systemctl start webapp.service4systemctl status webapp.service5systemctl stop webapp.service6systemctl enable webapp.service # Start on boot7systemctl disable webapp.service8
9# Update all Quadlet-managed containers10podman auto-update # Apply pending updates11podman auto-update --dry-run # Preview updates12
13# Generate systemd from running container (legacy approach)14podman generate systemd --new --name my-container > my-container.serviceCleanup & Maintenance
Prune Commands
1podman container prune # Remove stopped containers2podman image prune # Remove dangling images3podman image prune -a # Remove all unused images4podman volume prune # Remove unused volumes5podman network prune # Remove unused networks6podman pod prune # Remove all stopped pods7podman system prune # Remove all unused objects8podman system prune -a --volumes # Nuclear option — remove everything unusedDisk Usage
1podman system df # Summary of disk usage2podman system df -v # Detailed disk usage per objectStorage Management
1podman system info | grep store # Check storage driver and root2podman container storage # Show storage info3podman reset # Reset podman (remove all data)Kubernetes Integration
Podman can generate Kubernetes YAML from running containers and pods.
1# Generate YAML from a running container2podman generate kube my-container > pod.yaml3
4# Generate YAML from a pod5podman generate kube my-pod > pod.yaml6
7# Play a Kubernetes YAML (creates containers/pods from YAML)8podman play kube pod.yaml # Start from YAML9podman play kube --down pod.yaml # Stop and remove from YAML10podman play kube --replace pod.yaml # Replace existing resources11
12# Generate a full deployment13podman generate kube --type deployment my-pod > deployment.yaml14
15# Test a Pod YAML locally before deploying to K8s16podman play kube my-deployment.yaml17podman ps -a18podman play kube --down my-deployment.yamlUseful Patterns
Health Checks
1# In Containerfile2HEALTHCHECK --interval=30s --timeout=5s --retries=3 \3 CMD curl -f http://localhost/ || exit 14
5# In podman run6podman run -d --health-cmd="curl -f http://localhost/ || exit 1" \7 --health-interval=30s --health-timeout=5s --health-retries=3 nginx8
9# Check health status10podman inspect -f '{{.State.Health.Status}}' my-containerResource Limits
1podman run -d --memory=256m nginx # Memory limit2podman run -d --memory=256m --memory-swap=512m nginx # Memory + swap3podman run -d --cpus=1.5 nginx # CPU limit (1.5 cores)4podman run -d --cpu-shares=512 nginx # Relative CPU weight5podman run -d --pids-limit=100 nginx # Process count limitRestart Policies
| Policy | Description |
|---|---|
no | Never restart (default) |
on-failure[:max] | Restart on non-zero exit code |
always | Always restart |
unless-stopped | Always restart unless manually stopped |
1podman run -d --restart=unless-stopped nginx2podman update --restart=always my-container # Update running containerRootless Tips
1# Map host UID to root inside container (useful for dev)2podman run --userns=keep-id -u root -v $(pwd):/app dev3
4# Share podman socket with Docker CLI5podman system service --time=0 &6export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock7docker ps # Now Docker CLI works with Podman8
9# Access privileged ports (< 1024) without root10sudo sysctl net.ipv4.ip_unprivileged_port_start=8011# Or bind to a high port and use a reverse proxyOutput Formatting
Common Format Options
| Flag | Description |
|---|---|
--format "table ..." | Table with custom columns |
--format "{{json .}}" | JSON output |
--format "{{.ID}}" | Specific field |
-q / --quiet | IDs only |
--no-trunc | Don't truncate output |
Format Examples
1# Custom container list2podman ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}"3
4# Get all container IPs5podman inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress}}' $(podman ps -q)6
7# Image sizes sorted8podman images --format "{{.Repository}}:{{.Tag}} {{.Size}}" | sort -k2 -h9
10# JSON output for scripting11podman inspect --format '{{json .Config.Env}}' my-container | jq .Docker vs Podman Quick Reference
| Feature | Docker | Podman |
|---|---|---|
| Daemon | Required (dockerd) | Daemonless |
| Root access | Default requires root | Rootless by default |
| CLI compatibility | docker | podman (drop-in replacement) |
| Compose | docker compose | podman-compose or podman compose |
| Pods | Not supported | Built-in pod support |
| Systemd | Separate integration | Quadlet (native systemd units) |
| Kubernetes YAML | Not built-in | podman generate kube / podman play kube |
| Socket | /var/run/docker.sock | podman.sock (per user) |
| Security | Namespace isolation | User namespaces + SELinux |
1# Docker → Podman alias mapping2alias docker=podman3alias docker-compose=podman-compose4
5# Or create a full compatibility wrapper6podman --remote=false # Force local Podman (ignore DOCKER_HOST)