Run Kubernetes YAML locally

Spin up pods/services from a K8s manifest with no cluster; --replace re-applies cleanly

podman play kube pod.yaml --replace

tool
podman16 commands
tags
podmank8stroubleshooting

More podman commands

  • podman unshare cat /proc/self/uid_map; cat /etc/subuid

    Inspect the user-namespace uid range backing rootless containers; fix perms via chown inside unshare

  • podman auto-update --dry-run && systemctl --user start podman-auto-update

    Pull newer images and restart labeled containers; needs io.containers.autoupdate=registry label

  • podman system migrate

    Refresh OCI runtime and user-namespace config after a podman/kernel upgrade; fixes stale containers

  • podman run -d --name web -p 8080:80 nginx:alpine

    Start a detached nginx container without root privileges

  • podman build -t myapp:latest -f Containerfile .

    Build from a Containerfile (Dockerfile-compatible)

all 16 podman commands