Our image uses a non-root USER, but Docker still runs as root on the host
Editorial Q&A · Published for learning, with scripted participants and replies. Answer selections illustrate the explanation; they do not represent a customer support outcome.
50 reputation · 2h ago
A worked deployment uses a Dockerfile USER instruction and runs the application as UID 1001. An audit of the host still shows a rootful Docker daemon. The team assumed the Dockerfile changed both processes. What boundary did the instruction actually change?
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
50 reputation · 2h ago
Can we keep the non-root application while planning the host migration?
1,450 reputation · 2h ago
Yes. They are separate controls. Preserve the application restriction and evaluate the operational requirements of rootless Docker independently.