/etc/subuid file contains:
I don't understand what the
dockremap line means, please explain.
I've run a docker with
dockerd --userns-remap=default to make use of user namespaces.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The subordinate uid file contains a list of users and the user ids that the user is allowed to impersonate.
In the example:
dockremap is the name of the system user. This can be a UID as well.
165536 is the system UID to start the UID mapping at
65536 is the number of UIDs allowed to be mapped. So 165536+65536 = 231072 will be the highest UID mapped to the
In Docker terms,
dockremap is the user the container will run as when you specify
--userns=dockremap. UID 0 in the container will be UID 165536 on the system. UID 1 in the container will be 165537 etc.