Bird
0
0

How would you correctly specify user namespace remapping to a custom user named dockremap in Docker's daemon.json?

easy📝 Syntax Q3 of 15
Docker - Security

How would you correctly specify user namespace remapping to a custom user named dockremap in Docker's daemon.json?

A{ "userns-remap": 1000 }
B{ "userns-remap": true }
C{ "userns-remap": "enabled" }
D{ "userns-remap": "dockremap" }
Step-by-Step Solution
Solution:
  1. Step 1: Understand syntax

    The userns-remap key expects a string specifying the username or "default".
  2. Step 2: Apply custom user

    To remap to a custom user, provide the username as the value.
  3. Final Answer:

    { "userns-remap": "dockremap" } -> Option D
  4. Quick Check:

    Value must be a username string [OK]
Quick Trick: Use username string for userns-remap in daemon.json [OK]
Common Mistakes:
  • Using boolean or numeric values instead of string
  • Using 'enabled' instead of username
  • Omitting quotes around username

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes