Interview Prep/Docker/Security, rootless, Podman and containerd

Rootless Podman volumes show wrong owner: files appear owned by a huge UID (e.g. 100999) on the host.

AdvancedTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → User namespace mapping: container UID N maps to subuid base + N − 1 on host.

Diagnose → podman unshare ls -ln dir; cat /proc/self/uid_map.

Fix → Use podman unshare chown, --userns=keep-id, or :U volume option.

Prevent → Plan UID mapping for shared directories.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd