Interview Prep/Docker/Architecture & Design Decisions

How would you handle a Docker image that must run as root (a legacy vendor image)?

AdvancedProductionArchitecture & Design Decisions
Answer

Contain the blast radius: user-namespace remap or rootless runtime so "root" is unprivileged on the host, drop all capabilities except needed ones, read-only root with tmpfs, no-new-privileges, seccomp default, isolated network with egress limits, no host mounts, and resource limits. Ask the vendor for a non-root build and document the exception with a review date.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions