Interview practice question
Security review flags containers running as root
Cloud & DevOps · Docker · Intermediate
A security review finds that most of your containers run as root. How do you fix this without breaking them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Add USER with numeric UID in Dockerfile.
- Fix file ownership/permissions.
- Change ports below 1024 to higher.
- Test writable paths (tmp, caches).
- Enforce via policy (runAsNonRoot).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.