Bird
0
0

You attempt to run a container with USER set to 'developer' but get: 'user developer not found'. What is the most probable reason?

medium📝 Troubleshoot Q6 of 15
Docker - Security
You attempt to run a container with USER set to 'developer' but get: 'user developer not found'. What is the most probable reason?
AThe container runtime does not support USER instruction
BThe user 'developer' is not created in the image
CThe Docker daemon is running as root
DThe image is missing the ENTRYPOINT instruction
Step-by-Step Solution
Solution:
  1. Step 1: USER instruction requires existing user

    The specified user must exist inside the image.
  2. Step 2: Error indicates missing user

    'user developer not found' means the user was not created.
  3. Final Answer:

    The user 'developer' is not created in the image -> Option B
  4. Quick Check:

    User must exist in image before use [OK]
Quick Trick: USER must exist in image [OK]
Common Mistakes:
  • Assuming USER works without user creation
  • Blaming Docker daemon or ENTRYPOINT

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes