Interview Prep/Docker/Operations, Rootless & Podman

How do rootless containers handle privileged ports and networking?

AdvancedProductionOperations, Rootless & Podman
Answer

Ports below 1024 need sudo sysctl net.ipv4.ip_unprivileged_port_start=80 or a reverse proxy/forward from higher ports. Networking goes through a user-space stack (slirp4netns; RootlessKit port driver, or pasta in Podman 5+), which costs throughput and hides source IPs unless the builtin port driver is configured. ping may need net.ipv4.ping_group_range.

All Docker questions Roadmap: Docker & containers

More on Operations, Rootless & Podman