Interview Prep/Docker/Image Security & Hardening

What should we do about shells and debugging tools if production images are minimal?

BeginnerProductionImage Security & Hardening
Answer

Use ephemeral debug containers: kubectl debug -it pod --image=nicolaka/netshoot --target=app or docker debug <container> (Docker Desktop/Pro), or run a sidecar with --pid container:app --network container:app. Keep a :debug tag built from the same Dockerfile for staging.

All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening