Pcornel
Containers · Container Runtimes

Podman and Rootless Containers

Cheat sheet · https://pcornel.dk/topic.php?topic=6129

Back to the Topic

Answer

Podman is a daemonless, Docker-compatible container engine that runs containers as child processes and supports rootless containers with user namespaces; it integrates with systemd (Quadlet).

Remember

Rootless containers cannot bind ports < 1024 by default and use slirp4netns/pasta networking. Run services with Quadlet .container files under systemd. podman generate kube exports Kubernetes YAML.

First checks

  • podman info — engine and rootless info
  • docker ps -a — containers and exit codes
  • docker logs <c> — container output
  • docker inspect <c> — config, mounts, network, state

Commands

podman
podman unshare chown
systemctl --user daemon-reload && systemctl --user start web
podman generate systemd

Verify in this order

podman CLI → conmon → runc/crun → container (user namespace for rootless)

Where it usually breaks

Volumes created by root are not writable by a rootless container.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6129

Confirmation

Confirm action

Continue?