Following docker instructions, I've run a docker with dockerd --userns-remap=default
which added this line to the /etc/subuid
file:
dockremap:165536:65536
I don't understand what it means, please explain.
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 communityFollowing docker instructions, I've run a docker with dockerd --userns-remap=default
which added this line to the /etc/subuid
file:
dockremap:165536:65536
I don't understand what it means, please explain.
The subordinate uid file contains a list of users and the user ids that the user is allowed to impersonate.
In the example:
dockremap:165536:65536
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 (Which will be UID 0 in the container)
65536
is the number of UIDs allowed on top of UID 0 to be mapped. So 165536 + 65536 = 231072 will be the highest UID mapped to the dockremap
user.
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.