Pcornel
Browse topics
Options
Recent
Favorites
Containers · Technical reference

Podman and Rootless Containers

Direct 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).

When to use this

Use it on RHEL-family hosts, for rootless containers, or when you want no central daemon.

First 30 seconds

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>.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Docker / containerd / Podman / Kubernetes / OCI-compatible platforms
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformDocker / containerd / Podman / Kubernetes / OCI-compatible platforms
Scope / prerequisiteUse it on RHEL-family hosts, for rootless containers, or when you want no central daemon.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points

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.

Key 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
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

LimitCauseFix
Cannot bind ports below 1024Unprivileged userUse a high port, or lower net.ipv4.ip_unprivileged_port_start
Volume permission deniedHost directory owned by a UID outside the mappingpodman unshare chown, or :U volume option
Containers stop at logoutsystemd user session endsloginctl enable-linger <user>
Slower networkingUser-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Terminology layer

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.

Aliases that resolve here
podman and rootless containerspodman rootlessquadlet systemd container
Confirmation

Confirm action

Continue?