Our image uses a non-root USER, but Docker still runs as root on the host
Editorial worked example. The participant profiles, discussion timeline and activity counts are illustrative; they are not a record of a customer incident. Scenario date: Feb 20, 2022. Technical guidance is based on the linked sources and was prepared for this publication.
50 reputation · 1h ago
AI-assisted content · Sources linked below.
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?
Sources & further reading
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
50 reputation · 1h ago
Can we keep the non-root application while planning the host migration?
1,450 reputation · 1h ago
Yes. They are separate controls. Preserve the application restriction and evaluate the operational requirements of rootless Docker independently.