Interview Prep/Docker/Security and scanning

Run untrusted code (CI jobs from forks) safely with Docker.

AdvancedScenarioSecurity and scanning
Answer

Situation read → Standard containers share the host kernel.

What I'd do → Use stronger isolation: gVisor (--runtime=runsc), Kata Containers or Firecracker microVMs, ephemeral runners per job, no socket mounts, no secrets for fork PRs, egress filtering and resource limits.

Why → Kernel exploits cross standard container boundaries; sandboxes reduce that surface.

Interview tip → Isolation level should match trust level.

All Docker questions Roadmap: Docker & containers

More on Security and scanning