docker run as root
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The base image or entrypoint likely overrides the user setting.
If the specified user doesn’t exist or the entrypoint switches back to root, Docker silently falls back. Checking the final image configuration usually reveals this.
Takeaway: User settings only work if nothing overrides them later.