Interview Prep/Docker/Image Security & Hardening

What are the dangers of `--pid=host`, `--net=host`, `--ipc=host`, `--uts=host`?

BeginnerProductionImage Security & Hardening
Answer

Each removes a namespace boundary: host PID lets a process signal or ptrace host processes (with caps) and read /proc/*/environ; host net exposes all host sockets and localhost services (including cloud metadata at 169.254.169.254); host IPC exposes shared memory. Allow only for vetted monitoring agents.

All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening