Use it on RHEL-family hosts, for rootless containers, or when you want no central daemon.
Podman and Rootless Containers
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).
1. podman ps -a, podman logs <c>.
2. Rootless? podman info | grep rootless.
3. subuid/subgid entries for the user.
4. Ports < 1024 → use higher ports or sysctl.
5. systemd: systemctl --user status <name>.
podman CLI → conmon → runc/crun → container (user namespace for rootless)
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Run podman unshare cat /proc/self/uid_map to see the mapping. Check file ownership on volumes with podman unshare ls -ln. For services, use Quadlet .container files and systemctl --user status.
Step 2 Common failures Narrow the fault
Volumes created by root are not writable by a rootless container. Containers stop when the user logs out unless loginctl enable-linger is set. Low ports fail to bind without net.ipv4.ip_unprivileged_port_start changes.
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.
podman info— engine and rootless infodocker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
ReferenceWhat it is1 section · depth on demand
How it works
Each podman command forks the container directly through conmon and an OCI runtime. In rootless mode, a user namespace maps UID 0 in the container to the user's own UID and higher IDs to the subordinate range. Networking uses slirp4netns or pasta to give the container outbound access without root.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Podman has no central daemon: each container is started by the podman command through conmon and an OCI runtime, and keeps running after the command exits.
How rootless mode maps users
/etc/subuid and /etc/subgid give each user a range of subordinate IDs, for example alice:100000:65536. Inside the container UID 0 maps to alice's own UID, and UIDs 1–65535 map to 100000–165535 on the host.
podman unshare cat /proc/self/uid_map
# 0 1000 1
# 1 100000 65536
A file created by container UID 33 (www-data) therefore appears on the host as UID 100032.
Rootless limits and their fixes
| Limit | Cause | Fix |
|---|---|---|
| Cannot bind ports below 1024 | Unprivileged user | Use a high port, or lower net.ipv4.ip_unprivileged_port_start |
| Volume permission denied | Host directory owned by a UID outside the mapping | podman unshare chown, or :U volume option |
| Containers stop at logout | systemd user session ends | loginctl enable-linger <user> |
| Slower networking | User-mode networking (pasta or slirp4netns) | Acceptable for most services; rootful for high throughput |
Running as a service with Quadlet
# ~/.config/containers/systemd/web.container
[Container]
Image=docker.io/library/nginx:1.27
PublishPort=8080:80
[Install]
WantedBy=default.target
systemctl --user daemon-reload && systemctl --user start web generates and starts a unit; podman generate systemd is the older, deprecated way.
Common mistakes
- Rootless containers expecting to bind ports below 1024.
ReferenceConfiguration & state1 section · depth on demand
Podman commands
podman run -d --name web -p 8080:80 nginx
podman ps ; podman logs web
podman generate systemd --new --name web # older; use Quadlet .container files now
podman play kube pod.yaml
podman unshare cat /proc/self/uid_map # user namespace mapping
Documented example, not captured output. Rootless containers cannot bind ports below 1024 by default (net.ipv4.ip_unprivileged_port_start) and use slirp4netns/pasta networking. Quadlet files in ~/.config/containers/systemd/ run containers as systemd services.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.