Interview Prep/Docker/Image Security & Hardening

How do you ship an image that survives `--read-only` and still logs?

IntermediateProductionImage Security & Hardening
Answer

Log to stdout/stderr (never files), mount tmpfs at /tmp and /run, and put caches or pid files in tmpfs. Identify writes with docker diff <container> during tests; every path listed under C/A either needs a volume/tmpfs or an app config change.

docker diff web
All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening