UID/GID mapping

Rootless mode and userns-remap mode map container UIDs and GIDs to the host differently.

GIDs follow the same rules using /etc/subgid.

This difference matters when setting file permissions on bind-mounted directories: in rootless mode, files owned by your host user appear as owned by root inside the container.


版本号 #2
由 壳壳虫 创建于 2026-10-31 19:29:58 UTC
由 壳壳虫 更新于 2026-10-31 19:29:59 UTC