Podman Cheat Sheet

A daemonless, rootless container engine — Docker-compatible commands with pods and tighter security defaults.

Containers4 sections · 23 commands
⌘K

Images & Containers

7
podman run -d -p 8080:80 IMAGE

Run a container detached

podman exec -it CONTAINER /bin/sh

Shell into a container

podman ps -a

All containers (like docker)

podman build -t NAME .

Build an image

podman push IMAGE

Push to a registry

podman pull IMAGE

Pull an image

podman rm -a

Remove all containers

Pods

6
podman pod create --name web --publish 8080:80

Create a pod with a port

podman pod create --network host --name NAME

Use host networking

podman run --pod web -d IMAGE

Run a container inside a pod

podman ps --pod

Show which pod each container belongs to

podman pod ps

List pods

podman pod stop/rm NAME

Stop or remove a pod

Rootless & Systemd

5
podman run --userns=keep-id -v ./data:/app/data IMAGE

Keep the host UID inside the container

podman generate systemd --name CONTAINER

Emit a systemd unit for a container

podman auto-update

Pull and restart containers with new images

podman system migrate

Sync storage after volume changes

podman info | grep -i rootless

Verify rootless mode

Compose Compatibility

5
podman compose up -d

Run docker-compose via podman

podman compose ps

Compose status

podman compose logs -f

Follow compose logs

podman-compose up -d

Alternative python implementation

alias docker=podman

Drop-in alias for most workloads