podman
Files
SKILL.mdagentsreferences
Install
Install the containing plugin
/plugin install ci-cd@llm-skills
Invoke this skill after installation
/ci-cd:podman
This skill is bundled inside ci-cd. Install the plugin once, then Claude Code can use any of its included skills. Browse the full plugin repository at github.com/alisonaquinas/llm-ci-dev.
SKILL.md
name: podman description: Build and run containers with Podman without a daemon. Use when tasks mention podman, podman run, rootless containers, podman machine, podman-compose, or running containers without Docker daemon.
Podman
Use this skill to build and run containers with Podman in a daemonless, rootless-first architecture.
Quick Start
- Run
podman infoto verify Podman is installed and rootless mode is active. - On macOS/Windows, start the VM first:
podman machine start. - Use
podmanwith the same flags as Docker — most commands are drop-in compatible. - Use
podman system prunecarefully — it removes stopped containers and unused images.
Intent Router
references/install-and-setup.md— install Podman by platform, machine setup, config filesreferences/command-cookbook.md— podman run/build/push/pod/generate/play/compose commandsreferences/rootless-and-pods.md— rootless architecture, user namespaces, pod networkingreferences/podman-compose-and-systemd.md— podman-compose, Quadlets, systemd unit generation
Workflow
Run a Container
# Run interactively
podman run --rm -it alpine:latest sh
# Run in background
podman run -d --name myapp -p 8080:80 nginx:latest
Build and Push Images
podman build -t myapp:latest .
podman push registry.example.com/myapp:latest
Manage Pods
podman pod create --name mypod -p 8080:80
podman run -d --pod mypod --name mycontainer nginx:latest
podman pod ps
Export to Kubernetes YAML
podman generate kube mypod > pod.yaml
podman play kube pod.yaml
Safety Guardrails
- Prefer rootless Podman (default on modern systems) over rootful to minimize attack surface — rootful Podman requires root privileges.
- On macOS/Windows, always start
podman machinebefore running containers; the VM hosts the container runtime. - Verify
/etc/subuidand/etc/subgidcontain entries for the current user before running rootless containers. - Use
podman system prunecarefully — it removes all stopped containers, unused images, and build cache. - When using
podman generate kube, review the generated YAML before deploying to Kubernetes — some Podman-specific fields may not be portable. - For production systemd services, prefer Quadlets over
podman generate systemd— Quadlets are the modern, maintained approach. - Use
podman machine sshto inspect the VM; do not run container workloads directly on the macOS host.
Related Skills
docker, containerd, cri-o