What is user-namespace remapping's effect on volumes in production?
IntermediateProductionImage Security & Hardening
Answer
Files created by container root appear on the host owned by the remapped range (e.g., 165536). Existing volumes and bind mounts owned by real root are unreadable. We migrate by chown -R 165536:165536 on data dirs, and Docker uses a separate /var/lib/docker/165536.165536 data root, so previous images/volumes are not visible after enabling it.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner