Note:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Talk:LXD/What are subuids and subgids?

From Funtoo
Revision as of 07:56, June 6, 2021 by Einfair (talk | contribs)
Jump to navigation Jump to search

The content of this article is attached to LXD by misunderstanding. Actually, when you setup LXC container all of the same are applicable. And lxc is a separate ebuild - http://gpo.zugaina.org/app-emulation/lxc

Nesting

Nesting is not mentioned «User namespaces can also be nested but the nested namespace can only map ids that exist in its parent, so you can only reduce but not expand the id space by nesting.»

Docker

docker daemon have a special key, which is in manpage

   --userns-remap=default|uid:gid|user:group|user|uid
     Enable user namespaces for containers on the daemon. Specifying "default"
     will cause a new user and group to be created to handle UID and GID range
     remapping for the user namespace mappings used for contained processes.
     Specifying a user (or uid) and optionally a group (or gid) will cause the
     daemon to lookup the user and group's subordinate ID ranges for use as the
     user namespace mappings for contained processes.