Complete the command to enable user namespace remapping in Docker daemon.
dockerd --userns-[1]The correct flag to enable user namespace remapping is --userns-remap.
Complete the daemon.json snippet to set user namespace remapping to the default user.
{
"userns-remap": "[1]"
}Setting "userns-remap": "default" enables remapping to the default user created by Docker.
Fix the error in this Docker run command to use user namespace remapping correctly.
docker run --userns [1] alpine idThe correct option for the --userns flag is default to enable remapping.
Fill both blanks to create a user namespace remapping entry in /etc/subuid and /etc/subgid.
dockremap:[1]:[2]
The user namespace remapping uses UID 100000 and a range of 65536 IDs by default.
Fill all three blanks to complete the Docker daemon configuration for user namespace remapping with a custom user.
{
"userns-remap": "[1]",
"subuid": "[2]",
"subgid": "[3]"
}To use a custom user for remapping, set userns-remap to the username, and specify the UID and GID ranges in subuid and subgid respectively.